When calculating cost for a newly create manufactured item I get the error below. Ā How do I begin to understand why and how to fix it?Ā
Division by zero. – (S)<runtime compiled code> (S)ClassesXppCompilerexecute (S)ClassesbfpProdFormulaCalculationcalculate – line 152 (S)ClassesRouteCalcConsumptioncalcWrkCtrProcessTime – line 31 (S)ClassesRouteCalcConsumptioncalcProcessTime – line 31 (S)ClassesBOMCalcItemOpercalcConsumption – line 37 (S)ClassesBOMCalcItemOpercalc – line 18 (S)ClassesBOMCalcBasecalcRoute – line 19 (S)ClassesBOMCalcItemrecalcBOM – line 31 (S)ClassesBOMCalcItemcalc – line 52 (S)ClassesBOMCalcJobcalcBOMCalcItem – line 10 (S)ClassesBOMCalcJobrunBOMCalculation – line 71 (S)ClassesBOMCalcJobrun – line 6 (S)ClassesBOMCalcJob_Itemrun – line 9
—————————— Roman Konyrev Mermet Cowpens SC ——————————
Roman, From the error message you included it looks like the actual division is taking placeĀ at ClassesbfpProdFormulaCalculationcalculate – line 152 Best betwould be to see what is going on in that class, it should tell you what data is missing.
—————————— Scott Morley Principal Application Architect OneNeck IT Solutions Bend OR —————————— ——————————————-
I have noticed that when we get this error, there is a field on the released product that is set to zero when it should be set to at least 1. Typically, it’s the Price unit listed under the Manage costs FastTab. Sometimes you are dividing by zero somewhere else entirely.
Hi Kelly, Thank you for your reply. Ā You pointed me in the right direction – while it wasn’t the Price Unit it was a setting under User Defined Data fast tab that was set at zero. Thanks again.
—————————— Roman Konyrev Mermet Cowpens SC —————————— ——————————————-
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!