Skip to main content

#DML Errors0 人がディスカッション中

We update a QuoteLineItem record to update a date field. This sometimes works perfectly, but sometimes fail with:

unable to obtain exclusive access to this record or 1 records: 0066900001iznb8AAA

As we can see, this is an opportunity ID.

 

Why does updating an QuoteLineItem record locks the Opportunity?

 

What i noticed is that we have an rollup summary on Quote to rollup QuoteLineItem records. Can this be the reason? Or could there be other causes?

 

We don't see any rollup-summary from Opportunity to Quote.

 

#Apex #Records #DML Errors #Locking DML #Locking

3 件の回答
0/9000
1 件のコメント
0/9000

Running blocks of code in your test as a user helps fix mixed DML errors!

0/9000