• Andrew Slutzky 2
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hello Developer Support,

QUESTION:
Can you tell me how to remedy this error?

CONTEXT:
It appears this Flow is generating an error, which I believe means multiple processes are trying to edit the same record at the same time. It appears this UNABLE_TO_LOCK_ROW is the issue and can be remedied by locking the records using the FOR UPDATE keyword. Not sure how to do that...

I don't have experience with Apex code; thus, I would like to stay away from it. Looks like 124 leads were not able to be updated because multiple edits were happening at the same time on the same records.

ARTICLE:
https://developer.salesforce.com/forums/?id=9060G000000I2r1QAC

ERROR MESSAGE:
Error element Update_Person_Score (FlowRecordUpdate).
The flow tried to update these records: null. This error occurred: UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record or 124 records: 00Q3Z00000lPnucUAC,00Q3Z00000lPnmKUAS,00Q3Z00000lPnpmUAC,00Q3Z00000lPnmJUAS,00Q3Z00000lPnplUAC,00Q3Z00000lPnmdUAC,00Q3Z00000lPnprUAC,00Q3Z00000lPnmOUAS,00Q3Z00000lPnpnUAC,00Q3Z00000lPnmjUAC,00Q3Z00000lPnq6UAC,00Q3Z00000lPnmiUAC,00Q3Z00000lPnq1UAC,00Q3Z00000lPnmxUAC,00Q3Z00000lPnqBUAS,00Q3Z00000lPnmnUAC,00Q3Z00000lPnq7UAC,00Q3Z00000lPnmEUAS,00Q3Z00000lPnm9UAC,00Q3Z00000lPnpkUAC,00Q3Z00000lPnoPUAS,00Q3Z00000lPnrAUAS,00Q3Z00000lPnoGUAS,00Q3Z00000lPnqqUAC,00Q3Z00000lPnvBUAS,00Q3Z00000lPnoZUAS,00Q3Z00000lPnrOUAS,00Q3Z00000lPnoUUAS,00Q3Z00000lPnrJUAS,00Q3Z00000lPnofUAC,00Q3Z00000lPnr

All the best,
Andrew Slutzky