Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

The value is not within the range. Acceptable values are within the range 0 – 2147483647.

Posted on by Microsoft Employee

Hi All experts

i am facing a problem in creating new cheque book in cash and bank module.

the senario is i have a cheque book that starts with cheque no 8060539581 and ends at 8060539680.

so when i create a cheque book it gives me error "The value is not within the range. Acceptable values are within the range 0 – 2147483647."

i tried the solve this issue following the post https://blogs.technet.microsoft.com/dynamicsaxse/2011/04/15/issue-with-check-numbers-when-exceeding-the-upper-limit-of-a-32-bit-integer/

but when i payment journal i generate payment it is giving me this no -529395011 .

what should i do to resolve the issue . kindly help 0488.image.png

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The value is not within the range. Acceptable values are within the range 0 – 2147483647.

    To resolve this issue after following the above link make few more changes in code as give below

    NumberSeq/numRemoveFormat

    Change from :-

    public static client server integer numRemoveFormat

    Change to :-

    public static client server int64 numRemoveFormat

    VendOutPaym_Cheque/Dialog

    startChequeNum = int642str(custVendCheque.parmFirstChequeNum());

    VendOutPaym_Cheque/GetFromDialog

    firstChequeNum      = str2int64(startChequeNum);

    regards

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The value is not within the range. Acceptable values are within the range 0 – 2147483647.

    Issue has been Resolved

    to do this do the following changes in  the numRemoveFormat method of NumberSeq class as given below

    From : -

    public static client server Integer numRemoveFormat(Num num,
    NumberSequenceFormat format
    )
    {
    Integer x;
    Integer val = #NextRecordNull;

    if (!format)
    return str2int(num);

    ............

    To: -

    public static client server int64 numRemoveFormat(Num num,
    NumberSequenceFormat format
    )
    {
    Integer x;
    Integer val = #NextRecordNull;//0;

    if (!format)
    return str2int64(num);

    ..........

    and forget not to follow the above link aswell.

    Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans