What is UNABLE_TO_LOCK_ROW Error in Salesforce?
The Salesforce UNABLE_TO_LOCK_ROW error occurs when Salesforce is unable to obtain an exclusive lock on a record during an update operation. To ensure consistency, Salesforce automatically locks a record when it is being updated.
If any other user, automation or integration tries to modify the same record at the same time, Salesforce throws the UNABLE_TO_LOCK_ROW error to avoid conflicting updates.
The error typically appears as:
- UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record
