Skip to main content

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 answers
0/9000