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?