Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

Posted on by 1,600

Hi Folks,

Today, I came across an issue with Free Text Invoice posting in Ax 2012, During posting process system throws 'Voucher %1 is already used as of date %2'. 

Actually, that voucher number it showing is posted successfully on October 2014. Later user posted many invoices and the next number of the Number Sequence is different from the number showing in the error, but suddenly today we facing this issue. During my investigation, I found that the number in error, hanging in the status list of Number Sequence with Free Status and during posting, system took the unallocated number to post. We are decided to clear the rec and move further.

But my Question, how the number is posted 6 month before which is causing issue now and how it got the free status in the status list. I am not pro in num seq process, if anyone help me on this to get clarification?

// Vasanth Arivali

Categories:
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    Mark TSM, could you tell me what batch cleanup process you are referring to? We run into this issue from time to time and it's fairly frustrating for end-users. I can manually delete the locked number sequences via Status List but this requires manual intervention every time.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    Hi

    Check the history for that number sequence, if anyone has manipulated the numbers.

    This issue will happen when someone has deleted the record without using it or press 'Esc' button before saving the record .

    System will reserve that number against that user and reuse it if 'continuous' check box is marked for that number sequence and the status is 'Free' in the status list form.

  • Suggested answer
    Prashant Singh Profile Picture
    Prashant Singh 8,797 on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    check the number sequence AR >> Parameter >> Number Sequence >> Free Text Invoice.

    is this number sequence is used in any other setup. If yes then change the sequence.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    Hi,

    I have the same problem with 2 users who use the same ledger jounral. A lot of time, 1 or 2 times per week, a user cannot validate his ledgerjournal because it contains a number already used in a ledgerjournal validated by another user.

    Voucher has a continous number. Cleaning process is batched at night.

  • VasanthArivali Profile Picture
    VasanthArivali 1,600 on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    Thanks for you immediate reply, I am also digging in that way. But there is no code changes in those classes(during the process of getting voucher / invoice id) all are referring system classes only. That is why I couldn't get the exact root cause of why and how it was happened. Thanks for your suggestions once again.

    // Vasanth Arivali

  • Suggested answer
    Prashant Singh Profile Picture
    Prashant Singh 8,797 on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    May be somebody made some changes, Behind the scene same code is running for all.

    So it should behave like this.

  • VasanthArivali Profile Picture
    VasanthArivali 1,600 on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    Hi Prashant,

    I accept this multiple running number sequence, but how it is possible a number which is posted in Oct 2014 will cause issue in May 2015.  Ax will take the hanging(free status in reserved number seq) in their next posting / in further posting right? That what I couldn't understand and the table doesn't enabled with Created by and Created Date and Time so I cannot track the time of record creation.

    // Vasanth Arivali

  • Suggested answer
    Prashant Singh Profile Picture
    Prashant Singh 8,797 on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    This problem occurs due to interference of multiple running number sequences in same format in AX 2012. This happens due to assigning the number sequences through the wizard.

    Regards,

    Prashant Kumar

  • VasanthArivali Profile Picture
    VasanthArivali 1,600 on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    Hi Prashant,

    Thanks for your reply,

    There is no modification in the setup, It is configured as Continuous only.

    // Vasanth Arivali

  • Suggested answer
    Prashant Singh Profile Picture
    Prashant Singh 8,797 on at
    RE: Voucher INVOICE NUMBER is already used as of date error during Invoice Posting in Ax 2012

    May be you have changed the number sequence setup.

    No selection : It will increase the number even though you have not selected.

    Continuous : It will take the same sequence if it has not been used.

    Manual : Need to define the sequence manually.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,089 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans