ROUND parameter 2 is outside of the permitted range.

upasanisandipupasanisandip Member Posts: 405
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

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    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)
  • upasanisandipupasanisandip Member Posts: 405
    Should I remove that ROUND.
  • ClausHamannClausHamann Member Posts: 80
    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)
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    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)
  • kinekine Member Posts: 12,562
    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.
Sign In or Register to comment.