Tuesday, November 9, 2021

Cannot edit a record in Sales Orders (SalesTable). An update conflict occured due to another user process deleting the record or changing one or fields in the record D365 FO

 

This error usually occurs when you are trying to update a table, but the table was previously updated by another operation.

In this case it is advisable to call the reread () method of the table before updating.

Something like that :

1
2
3
4
5
6
journalTable.reread(); //--> try this before update method
journalTable.NumOfLines = any2int(journalTrans.recId);
journalTable.selectForUpdate(true);
ttsBegin;
journalTable.update(); //Update method
ttsCommit;

Original post: https://d365ffo.com/2021/05/13/d365ffo-ax-how-to-resolve-error-cannot-edit-a-record-in-table-an-update-conflict-occurred-due-to-another-user-process-deleting-the-record-or-changing-one-or-more-fields-in-the-reco/
Also, refer another blog: http://daxdude.blogspot.com/2013/02/ax-issue-cannot-edit-record-in-sales.html

No comments:

Post a Comment

Why do users often get confused about Dynamics 365 Customer Engagement (D365 CE), Dataverse, and the Power Platform?

  The Microsoft ecosystem for business applications can sometimes be difficult to navigate, especially when discussing Dynamics 365 Customer...