Skip to main content
Microsoft Dynamics NAV forum

"Attempted to divide by zero" error in Purchase Order of Navision 2018

editSubscribe (0) ShareShare
Posted on by 3,915



Hi, my user tried to delete the line item in Purchase Order, but she was prompted with "Attempted to divide by zero" error in Navision 2018.

Can advise what does it means and how the means to resolve it?

Thank you.

  • YUN ZHU Profile Picture
    YUN ZHU 60,007 Super User on at
    RE: "Attempted to divide by zero" error in Purchase Order of Navision 2018

    Hi, I think you can try Debug in Development Environment (C/SIDE) to find out the field that is 0.

    To activate the debugger

    1. In Object Designer, on the Tools menu, choose Debugger, and then choose Debug Session.

      The Session List page opens.

    2. In the Session List page, on the Home tab, in the Session group, choose Debug Next.

      The Debugger page opens, but no session is currently being debugged, and no code is displayed in the code viewer.

  • Verified answer
    Community Member Profile Picture
    Community Member UG Leader on at
    RE: "Attempted to divide by zero" error in Purchase Order of Navision 2018


    Your Unit of Measure Code = CAN does this have an Item Unit of Measure conversion to Base UOM? If so, does it divide properly? Check this as the message is telling me that CAN is trying to divide by zero.



Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,126 Super User

Martin Dráb Profile Picture

Martin Dráb 222,646 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans