Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error when generating number

(0) ShareShare
ReportReport
Posted on by 35

Hi guys,

I have a problem in my MS Dynamics AX 2012. I am trying to post in Accounts Payable Journal / Vendor invoices / Pending vendor invoices. After I click the "Post" button this error will appear: "Number 10000 does not match format 0000-A###". I already check the number sequence because the transaction involve Purchase Order (PO) with a format and no. of PO-0000-A000001362. Please see the sample screenshot below.

Error-upon-posting.PNG

  • ergun sahin Profile Picture
    ergun sahin 8,816 Moderator on at
    RE: Error when generating number

    The size of the EDT you use the number series is not enough for the change you made.

    There are 3 possibilities in front of you.

    1. Increase the size of the EDT.

    2. Make changes to the format

    3.Connect to a new number sequence

  • Sony Boy Profile Picture
    Sony Boy 35 on at
    RE: Error when generating number

    Hi Andre,

    Thanks for this, I found the number sequence who have an error but when trying to update the sequence code there was an error occurred stating that: "One or more references using the current number sequence are not sufficiently long to contain numbers from this number sequence" what would be the best action for this?

    Thank you!

  • Sony Boy Profile Picture
    Sony Boy 35 on at
    RE: Error when generating number

    Hi Deepak,

    I found the number sequence who have an error but when I try to update the number sequence there was an error occurred.

    Error states that: "One or more references using the current number sequence are not sufficiently long to contain numbers from this number sequence"

  • Sony Boy Profile Picture
    Sony Boy 35 on at
    RE: Error when generating number

    Hi I tried to extend the number but there was an error and it says that the number sequence is unable to edit.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,489 Super User 2025 Season 1 on at
    RE: Error when generating number

    Hi Sony Boy,

    You compared the number 10000 with the pattern of the PO number sequence. The number 10000 might be taken from another number sequence (e.g. a voucher number) where there is a reserved space for 4 numbers only; not 5. Like mentioned above, you hit the maximum of the segment set on a number sequence, but not the PO numbering.

  • Deepak Agarwal Profile Picture
    Deepak Agarwal 8,566 on at
    RE: Error when generating number

    YOu can try to see what the next number is for this number sequence, in case all numbers are consumed you may need to change the number sequence.

  • ergun sahin Profile Picture
    ergun sahin 8,816 Moderator on at
    RE: Error when generating number

    the max number is 9999(  ####) and it looks like you hit 10000

  • Sony Boy Profile Picture
    Sony Boy 35 on at
    RE: Error when generating number

    Hi Harry,

    Thank you for your response. I haven't try to debug it yet may I know where I can specifically see this and resolve the error. Do I need to update the number sequence or any idea where I can visit the root cause of the error. Thank you!

  • Deepak Agarwal Profile Picture
    Deepak Agarwal 8,566 on at
    RE: Error when generating number

    Hello,

    have you tried to debug this, as mentioned in the error system is generating '10000' as the next invoice number while it does not match with the defined number sequence. Is this issue coming in production?

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans