You need to sign in to do that
Don't have an account?
Person account creation on lead conversion
I'm writing a test class that creates a lead and converts it. On conversion 2 new contacts are created through a trigger using data from the lead and it's this contact creation that I'm testing for.
The save result reports the following: "Can not select a person account"
My contacts are being created using the account Id of the account created on conversion, so, I assume it's this account that is being created as a person account. How can I ensure that the account created on conversion is a business account?
The code works perfectly well when I'm running it through the GUI and as far as I can tell, I'm creating the lead using the same recordtype and other data.
Any thoughts?
Read something similar, please check the below thread,
http://boards.developerforce.com/t5/Apex-Code-Development/Person-Account-handling-difficult-in-non-executeAnonymous/td-p/275189
Cheers
Sanjay
Thanks for the link, unfortunately, I wasn't able to resolve the issue.
To clarify, here's what's happening:
In a test class
In the GUI
Why?