ROUND parameter 2 is outside of the permitted range.

Hi,
Anyone knows abt this error
Appearing when i made entry of PO
The value of ROUND parameter 2 is outside of the permitted range.
The current value is : 0
The permitted range is : from 1 to 2147483647


Thanks,
Sandip.

Comments

  • Turn on the debugger and then make your entry in your PO. You'll see the C/AL Code that causes this error. It will definitely be a ROUND statement.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Should I remove that ROUND.
  • The ROUND function uses 3 parameter.

    ROUND(Number [, Precision] [, Direction])

    You get the error you get when the second parameter is zero.

    Regards

    Claus

    (changed last to second)
  • Should I remove that ROUND.

    That's the easy solution, but often not the correct one.
    Who has put that ROUND statement in the code?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Check the G/L Setup. It seems like one field for rounding is not correctly set (look into the zoom, it is possible, that this field is not visible on your form). Check all fields with name like "*Rounding Precision" - there must be something other than 0.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.