0

I am currently facing this error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record:[] while trying to insert a User record, and before creating a User a contact is created to be associated with the User in the same transaction. Why am i facing this error while "Creating" User? which Record is locked? and who has locked the record, According to Salesforce if i am updating user records all its parent records are placed under lock, in this case it is "Contact", so now in the User trigger if contact is being updated will i face this Error as it is same transaction and transaction should own the lock or not?

  • Hi user3576180 could you please post the full error and the code that you are using that is causing the issue? – Agamemnon Jul 23 '19 at 11:40

Your Answer

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

Browse other questions tagged or ask your own question.