Salesforce data load errors, explained
What each Salesforce API error means when you load, copy or seed records, why it happens, and how to fix it.
| Error | What it means | Caused by |
|---|---|---|
DUPLICATE_VALUE | A field that must be unique already has this value on another record in the org. | Org state |
DUPLICATES_DETECTED | A duplicate rule matched this record to an existing one and blocked the save. | Org state |
ENTITY_IS_DELETED | The record being updated, deleted or referenced has already been deleted. | Org state |
FIELD_CUSTOM_VALIDATION_EXCEPTION | A validation rule or Apex trigger rejected the record with a custom error. | Schema or configuration |
FIELD_FILTER_VALIDATION_EXCEPTION | A lookup value points at a record that fails the lookup field's filter criteria. | Schema or configuration |
FIELD_INTEGRITY_EXCEPTION | A value broke one of Salesforce's built-in consistency checks, often country and state codes. | Schema or configuration |
INVALID_CROSS_REFERENCE_KEY | An ID in a lookup field points to a record this org doesn't have, or the user can't see. | Schema or configuration |
INVALID_EMAIL_ADDRESS | A value sent to an Email field isn't a single, well-formed email address. | Data format |
INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST | A restricted picklist received a value that isn't in its list of active values. | Schema or configuration |
NUMBER_OUTSIDE_VALID_RANGE | A numeric value has more digits than the field's precision and scale allow. | Data format |
REQUIRED_FIELD_MISSING | The record has no value in a field the org requires, often a name or a parent lookup. | Schema or configuration |
STRING_TOO_LONG | A text value is longer than the maximum length defined on the target field. | Data format |
UNABLE_TO_LOCK_ROW | Another transaction is holding a lock on the record or its parent. | Org state |
Caused by groups errors the way Syntharil does: data format errors are fixed by changing the values you send, schema or configuration errors by changing the org or the job setup, and org state errors come from what else is happening in the org, not from your data.