web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

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

    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

  • WillWU Profile Picture
    22,361 on at

    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
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans