Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to solve the problem of Insufficient Access Rights on Cross-Reference Id?

Asked by Diana Campbell Jul 31, 2023 1.4K views 1 answer
Share

About this question

 The error showing “insufficient access on cross reference entity” is being displayed. While inserting the Opportunity followed by Opportunity Line item from the VisualForce page through the controller, I am logged in as a user whose profile license is “authenticated website”. However, while logged in as another user whose license is “customer portal manager” the code works well. Both orgs possess Opportunity OWD “read only” and opportunity line item “controlled by parent” To fix the issue I used “without sharing” on a class that runs the insertion code, and it works well from “authenticated website” user. Can you fix the error?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.