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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans