Error 'There is an integer that is too large'

MohammedMohammed 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..

Comments

  • Marc5150Marc5150 Member Posts: 9
    NewAdjustedcost is a decimal and not an integer.
    How about "no. of hits" and NewInboundEntryNo?

    Greetz,
    Marc
  • MBergerMBerger Member Posts: 413
    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.
  • matteo_montanarimatteo_montanari Member Posts: 189
    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

    Matteo
    Reno Sistemi Navision Developer
  • i4tosti4tost Member Posts: 208
    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?
  • MohammedMohammed Member Posts: 42
    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.
  • MohammedMohammed Member Posts: 42
    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 -25
  • SavatageSavatage Member Posts: 7,142
    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.htm
Sign In or Register to comment.