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

Community site session details

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

Error when importing multiple sales order lines using templates sales order lines v3 in D365 F&O

(0) ShareShare
ReportReport
Posted on by 109

Hello everyone,

 

I’m facing an issue in Dynamics 365 Finance and Operations when trying to upload sales order lines to existing sales orders using templates.

 

The problem is that if I upload a template with a single line, it works fine. But if I try to upload multiple lines, I get the following error:

 
 

"Cannot insert record in staging table. Record keys are DEFINITIONGROUP, EXECUTIONID, INVENTORYLOTID, PARTITION. Duplicate records must be removed from the file before importing."

 

The thing is, I’m not repeating any data. I actually need to upload multiple items into the same sales order, so this error doesn’t make sense to me.

 

Has anyone faced this issue or knows why D365 is treating my lines as duplicates when they are not?

 

Thanks in advance.

I have the same question (0)
  • Suggested answer
    Sergio_Vasquez Profile Picture
    109 on at
    Error when importing multiple sales order lines using templates sales order lines v3 in D365 F&O
    Hello , yes, you’re right. I actually removed that field because the number sequence is automatic, and if I leave it blank or with any value it throws a different error. In this case I can confirm that I’m not uploading this field.
  • André Arnaud de Calavon Profile Picture
    298,251 Super User 2025 Season 2 on at
    Error when importing multiple sales order lines using templates sales order lines v3 in D365 F&O
    Hi Sergio,
     
    Do you have a column for the field InventoryLotId in the source file? If so, I do assume you left the value blank. In that case, remove this field from the file to have it defaulted by standard logic. In case you have the field with a blank value, it is causing the duplicate.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 575

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 187 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans