Divide by zero exception error

  • Divide by zero exception error

    Posted by DSC Communities on December 8, 2016 at 12:37 pm
    • Nancy Vega

      Member

      December 8, 2016 at 12:37 PM

      I am getting a divide by zero exception error when trying to invoice a sales order.  I cannot figure out what the issue is with the order.   Has anyone run into this?

      ——————————
      Nancy Vega
      The Manning Management Companies
      Leesport PA
      ——————————

    • Matt Traxinger

      Member

      December 8, 2016 at 12:49 PM

      It is most likely due to a customization. We developers forget to check for things like that sometimes :). The only way to know what field is causing the error is to turn on the debugger and see where the code stops. Otherwise you’re just guessing at which part of the posting process is executing.

      ——————————
      Matt Traxinger
      NAV Developer
      ArcherPoint Inc.
      San Antonio TX
      ————————————————————————-

    • Kim Dallefeld

      Member

      December 8, 2016 at 12:54 PM

      Does the customer or item  have any discounts, lines or invoice? Is there a price on the sales lines? This is caused by a mathematical calculation that did not test for zero before executing and  there are many places on the sales order that could be at fault.

      Maybe adding some screen shots of the error and of you sales invoice would be helpful here.

      ——————————
      Kim Dallefeld
      NAV Consultant
      Ft Worth, TX
      Kim@Dallefeld.com
      ————————————————————————-

    • David Wiser

      Member

      December 8, 2016 at 4:50 PM

      I have seen this also when sales tax is being calculated on the line with numerous tax jurisdictions on one line.  You might want to check that also.

      ——————————
      Dave Wiser
      Controller
      Beckwith & Kuffel
      Seattle WA
      ————————————————————————-

    • Jason Wilder

      Member

      December 9, 2016 at 8:04 AM

      Agree with Matt.  Someone can debug this in a minute or two.  Fortunately one of the easiest errors to debug and fix.

      ——————————
      Jason Wilder
      Senior Application Developer
      Stonewall Kitchen
      York ME
      ————————————————————————-

    • Matt Traxinger

      Member

      December 9, 2016 at 8:07 AM

      Yep, don’t spend hours guessing at what could be wrong when there is the option to definitely tell what’s wrong with a 5 minute call to your partner.

      ——————————
      Matt Traxinger
      NAV Developer
      ArcherPoint Inc.
      San Antonio TX
      ————————————————————————-

    DSC Communities replied 7 years, 4 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Divide by zero exception error’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for people  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!