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
sai ramsai ram 

insufficient access rights on cross-reference id issue

Hi Iam facing 
"insufficient access rights on cross-reference id "
issue may i know what is the reason iam updating the record that time iam facing the issue based on login user that record created by superior in role hierarchy and modified superior now iam login with other user iam unable to update the record that is in event object.and having accountid and contact id as whaid and whoid.user doesnt have access.but same user able to update another record iam confusing.
AbhishekAbhishek (Salesforce Developers) 
Hi Sai,

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id:[] is a common issue when you try to update or create data with insufficient access on a record.

Kindly check the user profile and check whether the user has access to insert/update that record. Even if the user has access, kindly check whether the user has access to update fields like record types, lookup field, master-detail field, etc.

Troubleshooting steps:


Make sure whether the user has access to record ids of the lookup fields and/or master-detail fields in the record.

Check the user Profile(CRUD Permissions).

Profiles need to have access to the record types.

Record's OwnerId automatically gets a shared record when the record is inserted. If the apex code tries to create the same(Share record for the owner) explicitly. This error occurs.

Check whether the apex code is trying to create share records to the record in which the current user doesn't have access to it.

Note:

Even though trigger runs in System Mode, Sharing Settings will be checked. Only CRUD and FLS will not be checked against the user.


For further reference, you can check the below too,

https://help.salesforce.com/articleView?id=000328226&language=en_US&type=1&mode=1

https://salesforce.stackexchange.com/questions/5546/how-to-fix-insufficient-access-rights-on-cross-reference-id

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.
Suraj Tripathi 47Suraj Tripathi 47
Hi Sai,

It is an access issue of your Org, make sure you are provided the access.
just check it.

you can get help from this link :
https://help.salesforce.com/s/articleView?id=000328226&type=1 (https://help.salesforce.com/s/articleView?id=000328226&type=1)

If you find your Solution then mark this as the best answer.

Thank you!

Regards,
Suraj Tripathi 
 
Snehal HaseSnehal Hase
Hey...didi you solve this issue..please help me.I am facing same issue.what should I have to do to solve this issue please
Acacia HarveyAcacia Harvey

I just ran into this issue as well.

 

I had to verify the email address I listed to receive the email. Salesforce sends the verification link. After you click it and return to the module, you should be able to send the email with no problem.

Hope this helps someone!

Gina Kalamaris 13Gina Kalamaris 13
@Acacia....can you explain the steps that you did around verifying the email?
Hima SaeedHima Saeed
I am getting this error when I run the flow to send email alert when an opportunity is reverted to Stage 5 from stage 6 closed . Please can someone help resolving the error . Thanks