Contents
- 1 When do I get insufficient access on cross reference ID?
- 2 When do I get an insufficient access error?
- 3 Can a logged in user restrict access to a record?
- 4 Can a field be updated that cannot be set explicitly?
- 5 What does soap MSG mean for cross reference ID?
- 6 Is there a test class for insufficient access?
When do I get insufficient access on cross reference ID?
It was all about object structure and component creation procedure. I am getting “INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: [] ” when i click on “Create Component” and on component page when i click on “Create” button.
When do I get an insufficient access error?
You can also get this error if you assign an ID value of a different object type. For example, if you try to assign a contact ID value to an account lookup field.
Can a logged in user restrict access to a record?
If you see while creating the record, the logged in user is the owner as well as Branch Manager of the record. Then in the trigger its again shared back with the Branch Manager who is the owner of the record. Basically, you cannot restrict the access to the owner of a record.
What does throw mean on cross reference ID?
The error is throw when you try to insert/update something that logically cannot be inserted/updated. You try to update a record that does not exist. Maybe the record was never there or it was deleted.
When do I not have access to record X?
You are trying to give permission to someone but you yourself do not have permission for this. If you are trying to share “Record X” with “User Y” and you yourself do not have access to “Record x”, this error happens Or if the “User Y” already has access to it.
Can a field be updated that cannot be set explicitly?
You try to update an object field that cannot be set explicitly. These fields can only be updated by the implicitly. e.g.: object owner, CreatedById, CreatedDate, LastActivityDate, LastModifiedById, LastModifiedDate. You cannot explicitly update these fields.
What does soap MSG mean for cross reference ID?
The following is the SOAP msg I am sending (with some field values changed, assuming that particular values don’t cause this error). Let me try that again, the xml didn’t show up correctly. The message refers to a cross reference id, which is typically an accountId, ownerId, and so on.
Is there a test class for insufficient access?
Just for kicks, if I switch it back to the original sharing settings, the test class passes.