Linked Questions

1 vote
1 answer
7k views

UNABLE_TO_LOCK_ROW error during inserting a new Record [duplicate]

I am trying to insert new records in Salesforce using data loader, but getting the below error - Error received from salesforce.com. Fields []. Status code [UNABLE_TO_LOCK_ROW]. Message [unable to ...
Aritra Chakraborty's user avatar
-1 votes
1 answer
3k views

UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: [duplicate]

I am creating case through trigger,but i am getting the UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: can anybody help me...
Sunny's user avatar
  • 683
0 votes
1 answer
557 views

test class Error need yours help [duplicate]

System.DmlException: Insert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record, how to rectify kindly hep me
suresh's user avatar
  • 1
1 vote
1 answer
228 views

can some one correct this error modified one [duplicate]

Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id ...
Teja's user avatar
  • 1,422
1 vote
0 answers
228 views

Batch apex UNABLE_TO_LOCK_ROW [duplicate]

We are facing the problems when running the batch apex getting below error First error: Update failed. First exception on row 0 with id 0061A000012kKuBQAU; first error: UNABLE_TO_LOCK_ROW, ...
Hari Sfdc's user avatar
0 votes
0 answers
35 views

System.DmlException: Upsert failed - UNABLE_TO_LOCK_ROW [duplicate]

I am trying to do an upsert using Database.Upsert() and getting this error: "caused by: System.DmlException: Upsert failed. First exception on row 200; first error: UNABLE_TO_LOCK_ROW, unable to ...
user1669296's user avatar
4 votes
2 answers
3k views

UNABLE_TO_LOCK_ROW error

I'm getting this error on before insert: Developer script exception from Organization : Chat_copyUserAgentToNewCase : Chat_copyUserAgentToNewCase: execution of BeforeInsert caused by: System....
Json's user avatar
  • 1,657
2 votes
1 answer
7k views

UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record or 200 records - Error even after using FOR UPDATE

I have a trigger and I am calling a queueable job from trigger. Sometimes I get this error: Update failed. First exception on row 0 with id a0VN00*********; first error: UNABLE_TO_LOCK_ROW, ...
Ramy's user avatar
  • 61
3 votes
1 answer
7k views

UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record

I have a batch process which updates Accounts and sometimes when i run this batch i get the error. UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record I did read through Mohit's ...
Prady's user avatar
  • 12.3k
7 votes
1 answer
5k views

Users getting "Unable to obtain exclusive access" Error

My users are attempting to work in records and occasionally get the error message of Unable to obtain exclusive access to this record or 1 records: [id]. This error is intermittent and I cannot find ...
Chance's user avatar
  • 1,070
0 votes
0 answers
622 views

UNABLE_TO_LOCK_ROW

Error while saving Quote Lines:SBQQ.ValidationException: [": execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable ...
Nirav Shah's user avatar
0 votes
1 answer
304 views

Account DML Update Failed

List<Account> acctList = [select Id,billingcountry, shippingcountry from Account where Subsidiary__c = 'VTI China' and billingcountry = null ]; for(Account a : acctList){ a.billingcountry = ...
Jet Cai's user avatar
3 votes
0 answers
189 views

Error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record [duplicate]

I have a batch job running asynchronously and I believe I am getting this error when the record run by batch job is being updated by a user at the same time. I am getting above error in test class and ...
sf_user's user avatar
  • 2,260
1 vote
0 answers
174 views

POST .../my.salesforce.com/services/data/v51.0/sobjects/Account/ fails with 400 due CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

When using the Salesforce API and creating an account using this endpoint POST https://<mycompany>.my.salesforce.com/services/data/v51.0/sobjects/Account/ we once in a while fails with a 400 ...
Hans-Christian Göranson's user avatar