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
KPJSKPJS 

Syncing a new quote to an Opportunity when previously synced - issue

This may not belong here, but I'm trying both forums.

We encounter this issue often, and I'd really like a simple solution to it. Our reps create Quotes and then sync to the Opportunity. But then they might stop the sync, then create a new quote and attempt to sync it, but they get this error:

QuoteLineSyncTrigger: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id 00k0H00000lQJlqQAG; first error: INVALID_OPERATION, Attempted to sync object 0QL0H000007WaEL which was previously synced in this transaction: [] ()

Anyone know an easy way to remedy this issue? I already deleted all the products out of the Opportunity in hopes of syncing all the new ones over fresh, but to no avail. Thanks!

ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

This could be because of the Products which are not added to the Opportunity before syncing the new quote.

Please refer the below thread which was resolved by adding the product to the Opportunity.

https://trailblazers.salesforce.com/answers?id=9063A000000Zoj5QAC

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri