I am getting a "Division by Zero" error message when trying to run the Adjust Cost - Item Entries in Navision 4.0.
The error occurs in Inventory Adjustment codenit number 5895 within the function CalcCostPerUnit.
The error occurs after the second IF statement and I don't really know what values the program is using to create entries in Cost Element Buffer table.
0
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Did anyone debug this error before me, so I might save the effort this time?
Do It Yourself is they key. Standard code might work - your code surely works.
Do It Yourself is they key. Standard code might work - your code surely works.
[-X You know it will happen, 9/10 of good programming is for the exception.
Would it not be wise to debug and IF Value1 <> 0 THEN X := Value2/Value1; ?
:P
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
Do It Yourself is they key. Standard code might work - your code surely works.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
What if i add in the beginning
i just wonder if the logic of the code that gives me ItemLedgEntryQty is ok or not. BEcause if it is not then it can lead to wrong results. And if it ok maybe i should assign and not leave it 0 ?
Anyone tried this?
BR Hawkeye
hawkeye and Eugene how did you get past it?