Salesforce Sync Error: UNABLE_TO_LOCK_ROW | Community
Skip to main content
Valerie_Armstro
Level 9
Oct 28, 2014 12:51 PM UTC
Question

Salesforce Sync Error: UNABLE_TO_LOCK_ROW

This morning, I had a Marketo notifcation that Marketo was unable to update Lead in Salesforce.  The error details were: UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record.  Any ideas on what may have thrown this error?

Thanks, Community!

18 replies

Valerie_Armstro
Level 9
Oct 29, 2014 1:38 PM UTC
I'm starting to wonder if this may have something to do with the recent Salesforce performance issues.  Our instance has had performance degradations yesterday and Monday.
Translate
Dory_Viscoglio
Level 10
Oct 29, 2014 1:17 PM UTC
Weird, we just got this error (for the first time) today as well! Kenny, is it possible that something has recently changed in Marketo or SFDC which would cause this error? Just seems a little too convenient that it's happened to several people just recently. 
Translate
Valerie_Armstro
Level 9
Oct 28, 2014 8:48 PM UTC
Hi Kenny,

Thank you for your reply. This is the first time we received an error like this.  I checked in with our SFDC Admin and no new AppExchange apps or API integrations have been deployed in the last two weeks. Reading through the articles you sent, it seems like this can happen due to updates with custom objects and lookup fields, could you expand on this?  Also, are there any other examples of when Salesforce would throw this error? 

Thanks again!
-Val
Translate
Kenny_Elkington
Level 10
Oct 28, 2014 4:16 PM UTC
Hey Val and Elena,

This indicates that when attempting to write to a record it is already being written or locked by another record.  You can find more extensive explanations here: http://salesforce.stackexchange.com/questions/27093/salesforce-parent-locking-unable-to-lock-row https://developer.salesforce.com/blogs/engineering/2013/04/managing-lookup-skew-to-avoid-record-lock-exceptions.html

Marketo will retry an operation a few times if this keeps being received, but will fail and move on if it happens too many times.  If these have recently become common, you might want to look into any new API integrations to SFDC which you've deployed or any new AppExchange packages with your SFDC Admin, tosee if you might be able to tune it o avoid these collisions.
Translate
Oct 28, 2014 1:20 PM UTC
Ohh, same stuff going on for the last week or so. Just subscribing to hear if there's an answer.
Translate