When a CSV file contains multiple rows that reference the same Salesforce record ID in the ID column, performing an Update or Upsert operation using Data Loader may result in one of the following outcomes:
Data Loader is a Salesforce client application used for bulk data operations. When performing an Update or Upsert, each row in the CSV file is treated as an individual instruction to modify a specific Salesforce record, identified by its ID. If the same record ID appears more than once in the file, this creates duplicate processing instructions.
This article explains what causes the "Duplicate Id Specified" error in Data Loader and how to prevent unexpected update behavior when your CSV file contains duplicate record IDs.
Why This Happens
Rows in a CSV file that share the same record ID in the ID column are treated as duplicate entries by Data Loader. The behavior depends on whether those duplicate rows are processed in the same batch or in different batches:
Duplicate Id Specified and identifies the duplicate ID. For example: Error: Duplicate id specified: 0013000000auCyTAAU — where 0013000000auCyTAAU is the ID that appears in multiple rows within the same batch.Example of Cross-Batch Duplicate Behavior
Result: The record is updated with the values from row 1 in the first batch, and then overwritten with the values from row 51 in the second batch. The final record reflects the values from row 51.
Recommended Prevention Steps
Before performing any Update or Upsert operation, review your CSV file to identify and remove any duplicate rows. As a best practice, validate your CSV for duplicate IDs before running any bulk data operation to avoid unintended record modifications.
000384876

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.