web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Cannot edit a record in Production orders (ProdTable).

(1) ShareShare
ReportReport
Posted on by 845
Hello,
 
When inserting a row in report as finished, I get the following error:
/Cannot edit a record in Production orders (ProdTable). An update conflict occurred due to another user process deleting the record or changing one or more fields in the record/.
 
I reanalyzed the code and the modification. I came to the place where the extended InventTrans.update(). In the extension of this method, before calling next(), I entered a custom method that run prodTable.update(). Everything works until super() is called in the ProdTable.update method - then I get this error. Can anyone suggest how to fix this?
 
error massage in ProdTable.update():
//////
 
InventTrans.update() extension:
//
 
Excerpt from the method in which the prodTable.update() is run:
//
 
I have the same question (0)
  • Suggested answer
    Vignesh.A Profile Picture
    203 on at
    Mostly this error will occur during multiple updates happen to the record. 
     
    If any custom update code is written then before or after the custom code there might be a standard code updating the same record. Simply try is to do a ProdTable.reread() after you update the record to bring the current updated values to the buffer so the next update wont cause conflicts.
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    If you are getting such error means, firstly it is not right to place the code at such a place. Secondly can you tell me if it is a standard report you are working?
  • André Arnaud de Calavon Profile Picture
    304,932 Super User 2026 Season 1 on at
    Hi Shooowtek,
     
    I'm not able to check what exact methods you shared and in what sequence what method is called. It looks like you are updating the production order in another method while being in the same transaction scope. What happens now is that the application retrieved a prodTable record with a specific record version ID. When you update the record in your extension, it will get another record version. When the original method will then perform the update action, there is a mismatch between the retrieved version of the record and the latest version, resulting in the error you have now. You should refactor the coding to set your custom field values in the same transaction scope and let the standard coding call the final update action.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 662 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 660

#3
Subra Profile Picture

Subra 489

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans