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 :
Small and medium business | Business Central, N...
Suggested Answer

Application_DialogException,Total amount (0.00) is not equal to total of lines (242.00)

(0) ShareShare
ReportReport
Posted on by

I use the MS web API and with it I POST purchase invoices. For development I use Visual Studio and .NET Core.
I first POST the invoice header using the purchaseInvoice resource type.
Then I POST the invoice line(s) using the purchaseInvoiceLine resource type and the purchaseInvoice Id
I want the invoice to be posted immediately (not as a draft), therefor I issue a bound action.
After posting the bound action I get an exception, Application_DialogException,Total amount (0.00) is not equal to total of lines (242.00).

The total amount of the invoice header is not the amount I send (242.00), but 0.00
Why is the correct total amount not showing, but instead 0.00?
And how can i solve this?

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.dynamicsuser.net/.../14

    I will open this up to the community in case they have something to add.

    Thanks.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at

    You should try to post the same transaction using GUI to see if you run into the same problem there. Then you at least can determine if it is a API problem or not.

  • Suggested answer
    YUN ZHU Profile Picture
    98,128 Super User 2026 Season 1 on at

    Hi, You should first rule out the problem mentioned by Inge, it looks like the Line amount is not validated on the header.

    If it still doesn't work, you can try the deep insert method below.

    https://www.kauffmann.nl/2020/07/01/deep-insert-with-business-central-apis-part-2/

    pastedimage1655770048402v1.png

    pastedimage1655770068545v2.png

    Hope this helps.

    Thanks.

    ZHU

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,033 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,105 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,035 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans