0

We have lightning community, in which we have drag and drop component.

After onclick of button, we are updating custom object 'contact survey' record owner id. In @AuraEnabled method we are updating the owner id of the 'contact survey' with parent custom object 'account' 's ownerId.

Error:

System.DmlException: Upsert failed. First exception on row 0 with id first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []

  • First take a look here to see if it could be any of those issues causing this error – Brian Miller Jul 16 '19 at 9:13
  • @BrianMiller, i have checked but this does not help me. This is due to owner Id update. if we comment the line of owner updating then we dont see this error. – pranil nimase Jul 16 '19 at 9:22
0

You have add new permission "View All User" to profile of guest user. enter image description here

  • Or you can place the ownership-changing method into a "without sharing" class, rather than giving unauthenticated users super-broad permissions. – Charles T Jul 23 '19 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.