I'm currently migrating around 2000 accounts to person account via apex. For some reason, it fails on one account. I have checked that it meets all the criteria (one child contact, same owner, same currency, no Parent Account etc..) and it still fails. The logs just say:
System.DmlException: Update failed. First exception on row 316 with id 0011v00001yl1CHAAY; first error: INVALID_PERSON_ACCOUNT_OPERATION, account cannot be converted to person-account: []
Does anyone know a way to get more info about the error?
Best Answer
From Setting Up Person Accounts:
You didn't mention steps 5-7 in your post, and in particular 6 and 7 are the most likely to trip people up. Double check that no records look up to either the
Account
or theContact
viaParentId
andReportsToId
, respectively. If you have verified with 100% certainty that each of the above criteria is fulfilled, you need to open a support case.Here is an anonymous script you could use to verify each step. If it runs successfully, you can share it with support and posit that you have encountered a bug.