Skip to main content

Notifications

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?

  • Suggested answer
    YUN ZHU Profile Picture
    81,360 Super User 2025 Season 1 on at
    RE: Application_DialogException,Total amount (0.00) is not equal to total of lines (242.00)

    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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,021 Moderator on at
    RE: Application_DialogException,Total amount (0.00) is not equal to total of lines (242.00)

    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
    Marco Mels Profile Picture
    on at
    RE: Application_DialogException,Total amount (0.00) is not equal to total of lines (242.00)

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans