+ Start a Discussion
BobPBobP 

Flow error The flow tried to update these records: null

I have a flow that is working. It updates service appointments when a community user click a flow button and changes the dates on a flow screen and then clicks save.

It will generate a error often of "The flow tried to update these records: null. This error occurred: UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record. " 

I think my flow is created correctly, but i am wondering if there is something i can update to stop these errors.

Looking at this part of the error message "The flow tried to update these records: null." 
Why is it starting with a null while getting a record ID?
User-added image

Then it errors out on the service appointment update.
User-added image
 I beleieve the biggest issue with the update is the status field.

Is there a better way to set that value?  I'm just not sure why I am getting so many errors off of a simple flow.

 should i set specific fields in the get element for service appointments? 



 
AnkaiahAnkaiah (Salesforce Developers) 
Hi Bobp,

Please refer the below article with detail explaination about  UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record. " 

https://help.salesforce.com/s/articleView?id=000338933&type=1

If this hepls, please mark is as best answer for future reference.

Thanks!!