Friday, September 13, 2024

Update Conflict

" Cannot edit a record in Order lines (SalesLine). An update conflict occurred due to another user process deleting the record or changing one or more fields in the record."


Cannot edit a record in Order lines . An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

Solution:

Before the update code. Write Table.reread();

Reason for the error

As the message says, this means that D365FO tries to update a record you previously fetched, but when it tries to update it with new values, finds it has already been updated by another process or user. The reason why you get the error is because D365FO does not want to override whatever changes were made already by someone or something else. This mechanism prevents for example invoicing a sales order which at the same time was being updated by another user. You would not want to lose the updates from the other user, so the error is actually saving you from a corrupted sales order, or from updating it with incorrect values.


Refer this link  for more info

https://www.linkedin.com/pulse/troubleshooting-dreaded-update-conflict-occurred-due-van-wageningen/

No comments:

Post a Comment

Build Explained

Useful Blogs. https://axtechsolutions.blogspot.com/2018/08/performing-builds-in-d365.html https://community.dynamics.com/blogs/post/?postid=...