web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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

  • Verified answer
    Community Member Profile Picture
    on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans