Skip to main content

Notifications

Announcements

No record found.

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 785
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:
//
 
  • André Arnaud de Calavon Profile Picture
    294,707 Super User 2025 Season 1 on at
    Cannot edit a record in Production orders (ProdTable).
    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.
  • Bharani Preetham Peraka Profile Picture
    3,630 Moderator on at
    Cannot edit a record in Production orders (ProdTable).
    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?
  • Suggested answer
    Vignesh.A Profile Picture
    203 on at
    Cannot edit a record in Production orders (ProdTable).
    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 143

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 130 Super User 2025 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 114 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans