Refer to the exhibit. A data migration is failing on Account upserts using an external ID field. What is the most likely cause of this error?
Exhibit
Error: 'DUPLICATE_VALUE: duplicate value found: Name duplicates value on record with id: 001xx000003YyZz'
Trap 1: The integration user lacks access to the Name field.
A lack of field-level security would trigger an 'INSUFFICIENT_ACCESS' or 'INVALID_FIELD_FOR_INSERT_UPDATE' error, not a duplicate value error. Duplicate value errors are specific to unique constraints on fields defined in the schema or custom unique indexes.
Trap 2: The bulk API batch size is set too high for the server.
Batch size limits relate to 'LIMIT_EXCEEDED' or timeout errors. A duplicate value error is a data-specific validation failure, not an infrastructure or resource-constraint error. Adjusting batch sizes will not resolve underlying data integrity issues found within the CSV or source dataset.
Trap 3: The target organization has existing records with duplicate names.
While possible, the error message specifically references the 'duplicate value found' on the record identifier used for the upsert. If the Name field itself is not marked as unique, it would not cause this specific error during an upsert operation.
- A
The integration user lacks access to the Name field.
Why it fails: A lack of field-level security would trigger an 'INSUFFICIENT_ACCESS' or 'INVALID_FIELD_FOR_INSERT_UPDATE' error, not a duplicate value error. Duplicate value errors are specific to unique constraints on fields defined in the schema or custom unique indexes.
- B
The source data contains duplicate external ID values for distinct records.
If the source file has two records with the same external ID that do not match existing records in Salesforce, the system cannot determine which record to update. This results in a collision error during the bulk processing phase of the migration.
- C
The bulk API batch size is set too high for the server.
Why it fails: Batch size limits relate to 'LIMIT_EXCEEDED' or timeout errors. A duplicate value error is a data-specific validation failure, not an infrastructure or resource-constraint error. Adjusting batch sizes will not resolve underlying data integrity issues found within the CSV or source dataset.
- D
The target organization has existing records with duplicate names.
Why it fails: While possible, the error message specifically references the 'duplicate value found' on the record identifier used for the upsert. If the Name field itself is not marked as unique, it would not cause this specific error during an upsert operation.