I am receiving the following Row Lock Error in Flow:

Error Occurred: This error occurred when the flow tried to create records: UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record

When this particular error comes up in Flows, how can I handle this exception? Do flows have the ability to handle error codes?

If this particular error comes up, I would want the system to go through a "pause" element and try again in a future context.

1 Answer 1


You can use a fault connector and {!$Flow.FaultMessage} variable to handle this. Example enter image description here

In the example above, the flow is redirected to the 'Next Steps' assignment if the 'Create Records' operation is successful. If it's not, it follows the fault path. A decision can be added in the fault path to check for specific errors and redirect the flow accordingly.

  • How do you know the fault message will say "Record Lock"? Is there a list of these faults online? Asking, because I cannot find a list anywhere. Apr 18, 2020 at 23:08
  • Fault message will be the same as the one you mentioned at the top - "This error occurred when the flow...". You can use something like {!$Flow.FaultMessage} 'Contains' UNABLE_TO_LOCK_ROW in the decision (instead of 'Equals') to uniquely identify error messages. Apr 18, 2020 at 23:21

You must log in to answer this question.

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