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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Generate automatic number sequences for sales and purchase order through data entity import

(2) ShareShare
ReportReport
Posted on by 300
I am trying to import bulk sales and purchase orders. I have a number sequence set up for both of them as below:
When I try to import new sales orders, I am getting errors as below:
How can I generate the sales order numbers automatically?
I have the same question (0)
  • Martin Dráb Profile Picture
    238,763 Most Valuable Professional on at
    You haven't told us whether you've configured sales ID as auto-generated in DMF source mapping. Please check that.
  • Imran Mustafa001 Profile Picture
    124 on at

    Steps to fix the issue
    Open your Excel or CSV template that you are using for the data import.
    Look for the fields where you mapped Sales order number or Purchase order number.
    Remove these mappings completely leave these fields blank or unmapped.
    Save your updated file.
    Go back to the data management workspace in D365.
    Re-validate the entity to make sure there are no mapping errors.
    Run the import again.
    After this, the system will automatically generate the sales and purchase order numbers using the number sequences.

  • SJ-16091251-0 Profile Picture
    300 on at
    @Martin Dráb @CU05071437-0- I did set it as Auto generated.
    Have kept the sales order number field blank in excel that I am importing.
    Am I missing out on something?
  • SJ-16091251-0 Profile Picture
    300 on at
    @Martin Dráb / @CU05071437-0 - When I generate using the methods suggested above, the data is getting created as below which is not a per my number sequence. Do I need to define a number sequence anywhere:
  • Imran Mustafa001 Profile Picture
    124 on at
    You can modify the sequence number to align with your predefined number sequence in the setup.
  • Martin Dráb Profile Picture
    238,763 Most Valuable Professional on at
    According to code in SalesOrderHeaderV4Entity.initValue(), it uses the number sequence defined for SalesId EDT (in Accounts receivable parameters). If it's not the case for you, I don't know why.
  • SJ-16091251-0 Profile Picture
    300 on at
    @Imran Mustafa001 - Thanks for your reply. Where do you suggest to change the number sequence? 
  • SJ-16091251-0 Profile Picture
    300 on at
    @Martin Dráb - I have that setup as well. Wondering why it is still now working. Can it be because I have set it as continuous?
  • André Arnaud de Calavon Profile Picture
    303,349 Super User 2026 Season 1 on at
    Hi,
     
    You can check if there are records in the status list for the number sequence. If so, then this can be indeed related to having the continuous option enabled. Try to disable the continuous setting.
  • Sagar121 Profile Picture
    1,151 Super User 2026 Season 1 on at
    Is normal SO creation is taking correct number sequence?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 1,081

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 218 Super User 2026 Season 1

#3
SoumitraforD365 Profile Picture

SoumitraforD365 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans