ENTITY_IS_LOCKED

The record is locked, normally because it is pending in an approval process.

Common causes

  • A user tries to edit a record awaiting approval.
  • Automation running as that user tries to update the locked record.
  • Apex locked the record with Approval.lock().

How to fix

  • Approve, reject or recall the approval request to release the lock.
  • Ask an administrator or the assigned approver to make the edit, if the approval process allows approvers to edit.
  • Run the automation in system context so it can update locked records.
  • Use Approval.unlock() in Apex. This requires “Enable record locking and unlocking in Apex” in Process Automation Settings.

You may also like...