function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VertigoVertigo 

Does the merge method work for person accounts?

I created two simple test Person Accounts. I execute the merge method in my code and get the following error:

 

Merge failed. First exception on row 0 with id 001e0000008raxdAAA; first error: INVALID_FIELD_FOR_INSERT_UPDATE, Unable to create/update fields: PersonContactId, CreatedDate, IsPersonAccount. Please check the security settings of this field and verify that it is read/write for your profile or permission set.: [PersonContactId, CreatedDate, IsPersonAccount]

 

 

It would seem that is choking on the read-only system fields of which would never be writable. This would imply that merging person accounts doesn't work at all. Has anyone gotten this to work?

Udai KapilaUdai Kapila
Hi Vertigo,

I got the same error for the CreatedDate field while trying to merge Person Accounts... My error read:

Unable to create/update fields: CreatedDate. Please check the security settings of this field and verify that it is read/write for your profile or permission set.

Have you been able to find a solution to this?