Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Can't finally to post or delete the order

Posted on by 10

Hello,

One of Production Orders I can't post. I get message "Attempted to divide by zero". What I need is posted, I need just to close the order, but I can't.

In released Production Orders I tried to delete, but I can't as well. Says "Ledger Entry associated with it".

How I could delete or finally post and close this production order?

Thanks for help!

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 Season 2 on at
    RE: Can't finally to post or delete the order

    Hi, I agree with Nitin, it looks like the program is trying to divide by 0, which is causing the error. Although it is not ruled out as a standard bug, the possibility of customization is very large. So Debug is recommended.

    More details about Debug: 

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

    https://docs.microsoft.com/en-us/dynamics-nav/activating-the-debugger

    Hope this also helps.

    Thanks.

    ZHU

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can't finally to post or delete the order

    Mike,

    Not sure if you are on Consumption, Output, or Production Journal document trying to Post. In any case, this one could come from anywhere so you need to trace if a UOM is causing the DIVIDE by ZERO. Here are some steps and a link:

    Go to development Environment, Tools -> Debugger -> Debug Session

    From the list of Sessions, select your session and click on Debug.

    A new window will appear.

    Now again perform the same action, as of you are getting the error. By this, you will come to a point where you have encountered the error.

    msdn.microsoft.com/.../hh165356(v=nav.90).aspx

    You can always contact your Partner to do this.

    Hope this helps.

    Thanks,

    Steve

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Can't finally to post or delete the order

    Hi, Please follow below steps.

    1. Open Development Environment do as per below image.

    pastedimage1651489955383v1.png

    2. It will open a new window as per below image.

    pastedimage1651490041398v2.png

    Now click on Debug button after selecting of your user id Record, make sure your RTC should be opened.

    3. No go to RTC and start processing or posting the Prod. Order, now you will see your cursor will be stopped at debugger with exact line of code, where the error, Not sure if you can understand the code. or send me that screen shot of the Code error.

  • Mike Maikovic Profile Picture
    Mike Maikovic 10 on at
    RE: Can't finally to post or delete the order

    Thank you for your quick reply.

    Problem is, that at this moment we don't have any support from any NAV specialists (after some managers left company).

    This problem will be sorted, but for now all of us looking for solutions, how to solve problems by ourselves.

    How I could run NAV debug by myself? Where I can find it?

    Thanks.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Can't finally to post or delete the order

    Hi Mike ,

    You have to please check if there is customization done before regarding posting routine of Prod. order. If yes, you need to take help of your License partner or Development partner to debug the issue, also You can't delete the prod. order until we have Ledger entry associated with it.

    Thanks.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans