INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, inadequate access civil liberties on cross-referral id: <>
Scenario is, I am inserting an Opportunity and also then Opportunity Line Item from a VisualForce web page using controller. When I am doing this I am logged in as user whose profile license is "Authenticated Website".
You are watching: Insufficient access rights on cross reference id
Stselection point is, when on one more org logged in as user whose user profile license is Customer Portal Manager the same code work-related fine. Both orgs have actually Opportunity OWD "Read Only" and also Opportunity line item "Controlled By Parent".
To resolve this trouble I"ve used "without sharing" on course which executes the insertion code, and also it functions fine from "Authenticated Website" user. As this might be a security concern as soon as we attempt to list the app on AppExreadjust, is tbelow any various other method to fix this problem?
chance permissions error-messages portal referral
Improve this question
edited May 17 "16 at 16:15
55777 silver badges1212 bronze badges
asked Dec 18 "12 at 14:25
1,90522 gold badges1616 silver badges2323 bronze badges
| Show 1 more comment
3 Answers 3
Active Oldest Votes
The error happens as soon as you"re trying to insert/upday the document which can not be logically inserted/updated.
So basically make certain that:you don"t insert/upday a document that does not exist,you don"t update object area that is build-in/read-just,you perdevelop the action making use of the user that has actually not the appropriate accessibility to modify the object
More thorough explanation:
This error was resulting in many pain in a Salespressure integration that we have actually. It seems choose a permissions issue on initially look. But it"s sort of misleading. Even a System Administrator deserve to obtain this error.
So after rebrowsing a lot, this was what I found:
The error is throw once you try to insert/update something that logically cannot be inserted/updated.
You attempt to update a document that does not exist. Maybe the document was never tbelow or it was deleted.
You attempt to upday a things field that cannot be set explicitly. These fields deserve to just be updated by the implicitly. e.g.: object owner, CreatedById, CreatedDate, LastActivityDate, LastModifiedById, LastModifiedDate. You cannot explicitly update these fields.
You are trying to give permission to someone yet you yourself carry out not have permission for this.
If you are trying to share "Record X" through "User Y" and also you yourself carry out not have access to "Record x", this error happens Or if the "User Y" already has accessibility to it.
See more: ▷ Telefono Consulado Mexicano San Antonio Tx, Consulado General De México En San Antonio
These are just a few reasons you can get the brianowens.tv error INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY; I am sure tbelow are others.