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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Add-on technique: How to prevent from the collision between Standard and Add-on program

(0) ShareShare
ReportReport
Posted on by

Hi all, 

I'm facing on the issue about my add-on program in Sales Line form.

[Objective]

 Set the total amount value to Sales header from Sales lines when the line amounts are updated.

 *Total amount field is one of the add-on fields.

[Step]

 I added the logic above to standard Update method in SalesLine table.

[Issue]

 A collision between Standard and add-on program occurred because Standard has the logic to update line info referred to header info.

 Therefore, the following error showed as a result.

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

I really need the solution to prevent from this issue with satisfying my objective.

If someone has any advice, please let me know.

Best regards,

Yuka

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    First of all, it would be great if you could share your code. Without seeing it, it's not so easy to see what might be wrong with it

    Second, what is the business requirement? Why do you need to maintain this summary amount on the order header? You could use a simple display method to show it, or if you need it on a report, simply summarize the line amounts by SalesId. This way you would save time and work and not need to worry about syncing the info from lines to header.

  • Suggested answer
    Lawrence.Shi Profile Picture
    Microsoft Employee on at

    Hi Yuka,

    I would suggest to have a debug session on SalesLine.update() and SalesTable.update() to learn the calling steps when do update on sales line amount, and you could determine which method could be used in extension. thanks 

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 254

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 188 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans