function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SwaroopaSwaroopa 

UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record

Hi all,

While trying to update a series in recurssive event I'm getting an error "UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record ".

I have a code in trigger to update event attendees name on updation of an event. I have return this code in future onAfterUpdateAsync method. It is working fine for normal events but for recurssive events I'm getting this error.

Please help me in resolving this?
Vinita_SFDCVinita_SFDC
Hello,

Please check the debug logs to find of there is any request which is taking lot of time while execution and results in locking the records. Refere below thread for detailed explanation:

https://developer.salesforce.com/forums/ForumsMain?id=906F00000008xHnIAI

SwaroopaSwaroopa
Hi vinita,


we have checked our logs and our process is not taking more than  few seconds
Vinita_SFDCVinita_SFDC
Hello,

This error occurs because of having so many concurrent trigger execution or some recursive trigger execution. I would suggest you to simplify the process to avoid too many related trigger executions.