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 :
Microsoft Dynamics NAV (Archived)

Error using Purchase Invoice Web Service 'Delete'

(0) ShareShare
ReportReport
Posted on by 40

I have an integration that adds Purchase Invoices. In the event of an error after the header create I need to delete the partially created Invoice. When I call the Delete function I get an error "Other user has modified "Purchase_Invoice" "Document Type=CONST(Invoice),No.=CONST(2354)"

I have tried reading the Invoice prior to deleting and re-connecting to the WebService prior to the delete but always get the same error when I try to delete. Could it have to do with the fact that there are no line, in the case of a failure on the header update or empty lines in the case of a failure on updaing the line values

Any ideas?

*This post is locked for comments

I have the same question (0)
  • Gabsi Mohamed Profile Picture
    819 on at

    hello  Mike,

    several times, I encountered the problem.

    I suggest you create a codeunit  function that accepts as a parameter (key of the row that you want to delete) .

    in the fonction's body , select the ligne and delete.

    try your function first in the onrun of code unit.

    in your web app, just call the function and give it the key parameter.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans