Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

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

(0) ShareShare
ReportReport
Posted on by 4,584

5241.MicrosoftTeams_2D00_image-_2800_2_2900_.png

MicrosoftTeams_2D00_image-_2800_1_2900_.png

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
    79,097 Super User 2025 Season 1 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.

    https://docs.microsoft.com/en-us/dynamics-nav/walkthrough--debugging-the-microsoft-dynamics-nav-windows-client

    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
    on at
    RE: "Attempted to divide by zero" error in Purchase Order of Navision 2018

    Josh,

    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.

    Thanks,

    Steve

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 293,238 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans