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 :
Finance | Project Operations, Human Resources, ...
Answered

Error in posting Sales order / Customer invoice - "A number sequence has not been set up for the reference Customer invoice in the area Sales"

(0) ShareShare
ReportReport
Posted on by 210

Hello everyone,

Have somebody else incurred in this error log when posting a Sales order: A number sequence has not been set up for the reference Customer invoice in the area Sales? I'm not strong in the finance area and I asked some of my colleagues but they're puzzled too, so... I suppose it's setup matter but I can't find the right place.

Some context: this happens when I execute a custom class which is supposed to get some data from custom tables and use it to create and post a Sales order and then create and post a Customer invoice. At the moment not even the order is being created. Other than that, this custom class does not modify the standard posting procedure for orders & invoices.

Thank you for your insights.

Gian Paolo

I have the same question (0)
  • Suggested answer
    saurabh bharti Profile Picture
    15,039 Moderator on at

    Hi Gian,

    It looks like number sequence for customer invoice is missing.

    You can check :

    Accounts Receivables > Setup > Parameters > Number sequence > Sales order Invoice ( Check if it is there)

    Or may be you can just run Number sequence wizard once if it is not production server by navigating to :

    Organization Admin > Number sequence > Generate number sequence > Click next > next > Ok

  • Gian Paolo Dell Erba Profile Picture
    210 on at

    Hey! 

    Thanks for your feedback! The sequence for Sales orders was already there:

    22_2D00_01_2D00_2020-15_2D00_06_2D00_05.png

    Gian Paolo

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    Hi Gian Paolo,

    You have now highlighted the sales order number sequence. The suggestion was to check the Customer Invoice number sequence.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Gian Paolo,

    Please check that also the other number sequences in the AR parameters are filled as Andre suggested.

    Probably run the number sequence wizard to get the missing number sequences automatically filled. Note: Please don't use the wizard in your live environment without having talked to your finance and sys-admin colleagues first.

    Best regards,

    Ludwig

  • Gian Paolo Dell Erba Profile Picture
    210 on at

    Hello!

    Sorry I forgot to reply on this issue, yeah I was looking at the wrong number sequence, just like André said.

    Thanks for your time!

    My best regards

    Gian Paolo

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans