I have Junction object called Agreement Scope which has two Master Detail relationships with Account and Agreement.
We are assigning Account and Agreement in the lightning components Apex Controller and doing an insert DML.
I am getting INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY exception.
Unfortunately I am not able view the stack trace.
I tried giving all the FLS to running user profile and even view all and modify all to the records, still it is throwing the error.
What can be the reason for this?
On the junction object there are some formula fields from Account and Agreement, especially from Account, Account Name.
I can view values for these in before insert calls.