Loading

RecordTypeId cannot be updated on the Person Contact entity.

Data pubblicazione: Oct 8, 2026
Descrizione

In Salesforce, when a person account is created (or an existing business account is changed to a person account), a corresponding contact record is also created. This contact record is referred to as a person contact. The ID of the corresponding person contact record is stored in the PersonContactId field on the person account.

To get the PersonContactId, query it from the person account record with this query: SELECT PersonContactId from Account Where Id=001******

Query the PersonContactId and then modify the contact record type to an existing record type via the API. The following Apex code gets a person account, queries its person contact, sets a new RecordTypeId on the contact, and updates the contact.

`Account account = [SELECT PersonContactId from Account Where isPersonAccount=true limit 1];
Contact contact = [SELECT ID, RecordTypeId from Contact where ID =:account.PersonContactId ];
contact.RecordTypeId = '012*******';
update contact;`

The update fails with the following error: System.DmlException: Update failed. First exception on row 0 with id 003xxxxxxxxxxx; first error: INSUFFICIENT_ACCESS_OR_READONLY, insufficient access rights on object id: []

Risoluzione

This article answers the question: why does updating the RecordTypeId on a Person Contact in Salesforce fail with an insufficient access error? The Person Account is the only place where the record type can be changed, so the update on the Person Contact is not possible.

Why the Person Contact Record Type Cannot Be Updated

The Person Account is the primary interface for manipulating the record type on a Person Account and not on its Person Contact. Therefore, updating the Person Contact record type is not possible. This behavior is working as designed.

Numero articolo Knowledge

005305352

 
Caricamento
Salesforce Help | Article