If your organization has enabled the ability to set 'audit' field values for imported records, you can use an External ID field as the matching value when you insert new records in Data Loader.
When your Salesforce org has the 'Create Audit Fields' permission enabled, you can preserve historical record metadata (such as CreatedDate and CreatedById) when importing records via Data Loader. To achieve this, you use an External ID field as the matching key during an Upsert operation. This is particularly useful when migrating data from legacy systems and needing to maintain an accurate audit history.
Once you've created the External ID field and populated the CSV file with a unique value for each record, you can use the Data Loader to insert the records and set the Audit fields.
Note: If the CSV file contains any existing records, the upsert fails with an error. Audit fields can only be created, and so the CSV file must only contain new records.
Error: "Unable to create/update fields: CreatedDate. Please check the security settings of this field and verify that it is read/write for your profile or permission set."
See also:
000383278

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.