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.


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 Commented Jul 16, 2019 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. Commented Jul 16, 2019 at 9:22

1 Answer 1


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
    Commented Jul 23, 2019 at 12:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .