Issue: When approving tax invoice the user gets an error message “Cannot edit a record in various tables like “(AccountingEvent)” Event type: None.,Deadlock, where one or more users have simultaneously locked the whole table or part of it”
There are some other errors too which came with the above error:
"Stopped (error): Cannot edit a record in Committed cost updates (CostControlTransCommittedCost). Project ID: GM.;Deadlock, where one or more users have simultaneously locked the whole table or part of it."
"Stopped (error): Cannot edit a record in Committed cost updates (CostControlTransCommittedCost). Project ID: BS.;Deadlock, where one or more users have simultaneously locked the whole table or part of it."
"Stopped (error): Cannot create a record in Dimension code set value (DimensionAttributeValueSetItem). Dimension code set: 5637269827, 5637146189.;Deadlock, where one or more users have simultaneously locked the whole table or part of it."
Cause identified: This issue is a result of workflow batch job conflicting as the batch job recurrence is set to 1 minute.
Recommended Resolution:
To resolve this issue Increase the time of the workflow batch job recurrence. This will prevent a second workflow job from executing before the first one completes. Recommend to start with 5 minutes and then move to 10 minutes if the error continues.
This is the recommended solution by Microsoft as per below link:
https://fix.lcs.dynamics.com/Issue/Solution?bugId=3272330
Impact: When a batch job is executed then it process 100 or less workflows at a time. Now, when execution is set to 5 minutes or 10 minutes then next set of workflows would be processes after 5 minutes or 10 minutes. There can be 5 minutes of delay for the workflow approval.
The client had rejected the above solution. It would be great if some other solution can be suggested.