Error 'There is an integer that is too large'

Mohammed
Member Posts: 42
Hi All,
When I'm executing Manufacturing --> Execution --> Released Prod. Orders --> Functions --> Change Status I'm getting an error 'There is an integer that is too large'
Error Location Seems to be the following:
Object : Table 5810 Rounding Residual Buffer\UpdRoundingCheck
Code :
IF ((RdngPrecision >= NewAdjustedCost) OR
(RndngPrecisionACY >= NewAdjustedCostACY)) AND
(("Adjusted Cost" * NewAdjustedCost) <= 0) AND
(("Adjusted Cost (ACY)" * NewAdjustedCostACY) <= 0)
THEN
"No. of Hits" := "No. of Hits" + 1
NewAdjustedCost seems to be holding the value -107,805,555,865,372,939,000,000,000,000,000
Please advice..
When I'm executing Manufacturing --> Execution --> Released Prod. Orders --> Functions --> Change Status I'm getting an error 'There is an integer that is too large'
Error Location Seems to be the following:
Object : Table 5810 Rounding Residual Buffer\UpdRoundingCheck
Code :
IF ((RdngPrecision >= NewAdjustedCost) OR
(RndngPrecisionACY >= NewAdjustedCostACY)) AND
(("Adjusted Cost" * NewAdjustedCost) <= 0) AND
(("Adjusted Cost (ACY)" * NewAdjustedCostACY) <= 0)
THEN
"No. of Hits" := "No. of Hits" + 1
NewAdjustedCost seems to be holding the value -107,805,555,865,372,939,000,000,000,000,000
Please advice..
0
Comments
-
NewAdjustedcost is a decimal and not an integer.
How about "no. of hits" and NewInboundEntryNo?
Greetz,
Marc0 -
the only thing the construction ("Adjusted Cost" * NewAdjustedCost) <= 0" does is to check if both values have different signs or one is zero, so you could change the code to do that without multiplication.0
-
Mohammed wrote:Hi All,
When I'm executing Manufacturing --> Execution --> Released Prod. Orders --> Functions --> Change Status I'm getting an error 'There is an integer that is too large'
Error Location Seems to be the following:
Object : Table 5810 Rounding Residual Buffer\UpdRoundingCheck
Code :
IF ((RdngPrecision >= NewAdjustedCost) OR
(RndngPrecisionACY >= NewAdjustedCostACY)) AND
(("Adjusted Cost" * NewAdjustedCost) <= 0) AND
(("Adjusted Cost (ACY)" * NewAdjustedCostACY) <= 0)
THEN
"No. of Hits" := "No. of Hits" + 1
NewAdjustedCost seems to be holding the value -107,805,555,865,372,939,000,000,000,000,000
Please advice..
Code :
IF ((RdngPrecision >= NewAdjustedCost) OR
(RndngPrecisionACY >= NewAdjustedCostACY)) AND
(("Adjusted Cost" / NewAdjustedCost) <= 0) AND
(("Adjusted Cost (ACY)" * NewAdjustedCostACY) <= 0)
THEN
"No. of Hits" := "No. of Hits" + 1
bye
MatteoReno Sistemi Navision Developer0 -
We do not have any problems with this, so i believe, that everything is OK with this in standard version. From my point of view, you have some bug in customization. Check, how NewAdjustedCost is calculated.
Or, maybe you produced item and in the same production order consumed it?0 -
There is actually no customization related to this
I can modify the code as it is only checking whether the result is <=0 . But it is still giving error in another location
Location : Table 5820 Cost Element Buffer\RoundActualCost(ShareOfTotalCost,AmtRndgPrec,AmtRndgPrecACY)
Code : "Actual Cost" := "Actual Cost" * ShareOfTotalCost + "Rounding Residual";
"Actual Cost (ACY)" := "Actual Cost (ACY)" * ShareOfTotalCost + "Rounding Residual (ACY)";
"Rounding Residual" := "Actual Cost" - ROUND("Actual Cost",AmtRndgPrec);
"Rounding Residual (ACY)" := "Actual Cost (ACY)" - ROUND("Actual Cost (ACY)",AmtRndgPrecACY);
"Actual Cost" := ROUND("Actual Cost",AmtRndgPrec);
"Actual Cost (ACY)" := ROUND("Actual Cost (ACY)",AmtRndgPrecACY);
"Actual Cost" = -102,027,663,437,439,781,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
ShareOfTotalCost = -1.65562913907284768
"Actual Cost (ACY)" = 0
AmtRndgPrec = AmtRndgPrecACY = 0.01
After Clicking 'Change Status', I'm selecting new status 'Finished' and Press 'Yes'. After that I'm getting a message 'Production Order RPO**** has not been finished. Some consumption is still missing. Do you still want to finish the Order?'
'Adjusting Value Entries..' window is displayed, showing the update and in between I'm getting the error message.0 -
More Details:
Released Production Order Header:
Source Type : Item
Source No. : M0170017-02-03
Released Production Order Lines:
1. Item No. : M0170017-02-03
Quantity : 87
Finished Quantity : 87
2. Item No. : M0170017-C1-04
Quantity : 87
Finished Quantity : 87
Inventory for Item M0170017-02-03 is -250 -
Mohammed wrote:"Actual Cost" = -102,027,663,437,439,781,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
Is this a novemdecillion :-k & Negative to boot :shock:
http://www.jimloy.com/math/billion.htm0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions