Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Division By Zero Error When Attempting To Submit a Purchase Order

(0) ShareShare
ReportReport
Posted on by 10

I am currently using Microsoft Dynamics AX 2012 R3. When I attempt to submit the purchase order in workflow, I am receiving the following error message:

Division-by-Zero-Error-for-PO.jpg

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Division By Zero Error When Attempting To Submit a Purchase Order

    Hi,

    the name "ogiValidateTotalAmount" indicates that it's a custom method. Could you check the code in it, and share with us if you need help?

  • WillWU Profile Picture
    22,352 on at
    RE: Division By Zero Error When Attempting To Submit a Purchase Order

    Hi Ganean Gordon,

    Is this a custom workflow? Is there any customization?

    In AX any value divisible by zero gives an exception, to avoid this use minOne function.

    field = value / minOne(value);

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Division By Zero Error When Attempting To Submit a Purchase Order

    Hello Genean,

    Do you have a technical expert around?

    It might be the case that the behavior that you experience is the result of a system bug.

    On LCS, I found a couple of hotfixes that MS released.

    Yet, you will need a technical expert to assess whether this message is the result of a bug or another glitch.

    Best regards,

    Ludwig

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,099 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

Product updates

Dynamics 365 release plans