Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Error-attempted to divide by zero

Posted on by 215

Hi everyone,

I have faced a problem as shown as below when i clicked on the outstanding order in the right hand side of the fact box

4863.Capture7.PNG7181.Capture6.PNG

Here i had attached the code on the debugger.

5047.Capture2.PNG

Hope anyone can help me out of this.

Many thanks here.

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Error-attempted to divide by zero

    Check the Customer Statistics Factbox Page and check if that value is referring to the field or any function call? 

    Check the below link for debugging

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

  • Suggested answer
    azelaya59 Profile Picture
    azelaya59 2,807 on at
    RE: Error-attempted to divide by zero

    You can run debugger from either within NAV by searching "Sessions" or in the Development Client under . Your choice. Highlight the session you want to debug and run NAV as normal. Identify the object and the line of code triggering the error:

    2019_2D00_01_2D00_30_5F00_1413.png2019_2D00_01_2D00_30_5F00_1413.png2019_2D00_01_2D00_30_5F00_1413_5F00_001.png

  • Jade Ng Profile Picture
    Jade Ng 215 on at
    RE: Error-attempted to divide by zero

    Hi,

    I have checked the page 516, there is no calculation that divide by zero.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Error-attempted to divide by zero

    This lookup shoudl open the Sales Line page. Are you sure that in this page you don't have some calculations that divides a number by zero?

    Try to run page 516 by Object Designer and see if the error occours.

  • Jade Ng Profile Picture
    Jade Ng 215 on at
    RE: Error-attempted to divide by zero

    Hi Alfredo Zelaya,

    I not familiar with the debugger. So, I actually not sure where i can click on the Flowfield, since i first time using it.

    So, is it okay you give me some idea on it.

    Many thanks here.

  • azelaya59 Profile Picture
    azelaya59 2,807 on at
    RE: Error-attempted to divide by zero

    Jade

    Do you get the same error when you open the customer page and click on the "Flowfield"?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans