Skip to content

Salesforce data migration: a plan that works

We plan it in stages: decide what to move, clean and map it, keep each record’s old ID in an External ID field, load parents before children, test in a sandbox, then run the final load. Salesforce says Data Import Wizard takes up to 50,000 records at a time and Data Loader up to 150 million.

By CobyLast reviewed

A data migration moves your customer records from spreadsheets or an old system into Salesforce. In our experience, most of the work happens before anything is loaded: choosing what to move, cleaning it and mapping it to Salesforce fields. It is one stage of a wider Salesforce implementation, and it is often the stage that decides whether people trust the new system on the first day.

The Salesforce facts below (tool limits, load order, audit fields, Bulk API limits) were checked against Salesforce’s developer documentation and Trailhead on 26 November 2026, and each is listed in the sources. The order of work and the advice are ours, and say so.

Before you start, check two things. First, your edition: Salesforce’s Data Loader guide lists it for Enterprise, Performance, Unlimited and Developer editions. Second, that you have a sandbox to test the load in. Our implementation checklist covers sandbox types and the wider project.

The plan at a glance

This is the order we work in. Each stage has a test for when it is done, so the final load is a repeat of something that has already worked.

A Salesforce data migration plan, stage by stage

StageDone whenWho owns it
1. ScopeEvery source listed, and what moves and what stays agreedYou
2. CleanDuplicates removed, values fixed, formats consistentYou, with help
3. MapEvery column mapped to a Salesforce field, or marked as not movingBoth
4. Prepare SalesforceFields, picklist values and External ID fields in placeYour admin or partner
5. Test loadFull load into a sandbox, counted and spot-checkedYour admin or partner
6. Final loadOld system frozen, data loaded in order, automation back onBoth
7. Check and sign offCounts and samples match the source; users have checked their own recordsYou
Our plan, from experience. "Your admin or partner" means whoever does the build.

Choose the right import tool

Salesforce gives two tools for most migrations, and the choice comes down to the number of records and your edition.

Salesforce’s import tools for a migration

ToolRecordsWhere it runsGood for
Data Import WizardUp to 50,000 at a timeIn the browser, from SetupAccounts, contacts, leads and custom objects when the volume is small
Data LoaderUp to 150 million at a time (with Bulk API 2.0)An application you install on macOS or WindowsLarger loads, any object, insert, update, upsert, delete and export
Bulk API 2.0Up to 150 million a dayThrough Data Loader or a custom integrationAny operation over 2,000 records, which Salesforce calls a good candidate for it
From Salesforce Trailhead, "Import Data", and the Data Loader Guide and Salesforce App Limits Cheatsheet on developer.salesforce.com, checked 26 November 2026.

Trailhead adds that the number of records you can import also depends on your permissions, the type of data and your org’s storage limits. For more than 150 million records, Salesforce recommends working with a Salesforce partner. Data Loader’s command line, for loads that run on a schedule, is Windows only.

1. Decide what to move

Salesforce’s Trailhead unit on large data loads says to identify the minimal data set needed for your business-critical work, and to load only that. We agree, and would apply it to any size of migration.

  • List every place customer data lives today: the old CRM, spreadsheets, the accounts package, shared inboxes.
  • For each object, agree a cut-off. In our experience, closed deals and inactive contacts from many years ago are rarely worth the cleaning time.
  • Decide where history that does not move will be kept, and for how long, so nobody needs the old system "just in case".
  • We would take a full export of anything already in Salesforce before you start. Trailhead says the Data Export service runs weekly in Enterprise, Performance and Unlimited editions, every 29 days in Professional and Developer, and that the zip files are deleted 48 hours after the email is sent.

2. Clean and map the data

Trailhead’s steps are: export from your existing software, clean the file for accuracy and consistency, compare your fields with the Salesforce fields you can import into, then make the configuration changes Salesforce needs, such as new fields or picklist values. Salesforce expects these formats:

  • Checkboxes: 1 for checked and 0 for unchecked.
  • Multi-select picklists: separate the values with a semicolon.
  • Dates: Trailhead says date and time fields must match how they display in Salesforce for your locale. Data Loader has a "Use European date format" setting for dd/MM/yyyy, which matters for UK files.
  • Characters: Data Loader has settings to read and write all CSVs with UTF-8 encoding.
  • Formula fields are read-only and cannot receive imported data. For a restricted picklist, Trailhead says Data Import Wizard uses the picklist’s default value, or may fail if it cannot find a match.
  • Long values: with Bulk API or Bulk API 2.0, Data Loader fails the row if a value is too large for the field, rather than cutting it short.

Our advice: keep the mapping in one spreadsheet, one row per source column, with the Salesforce field, any change to the value and who agreed it. It becomes your record of what moved and why, and the start of your org documentation.

3. Keep the old IDs in an External ID field

Our advice: give each object an External ID field that holds the record’s ID from the old system. It lets you trace every record back to its source, rerun a load without creating duplicates, and link child records to parents without looking up Salesforce IDs first.

This works through upsert, which Salesforce’s API documentation describes as creating new records and updating existing ones, using an External ID field to tell them apart. Salesforce’s rules for the match:

  • If the External ID is not matched, a new record is created.
  • If it is matched once, the existing record is updated.
  • If it is matched more than once, an error is reported. Mark the field Unique so this cannot happen.
  • Matching ignores case only if the field is Unique and set to treat "ABC" and "abc" as duplicates. Otherwise "ABC123" and "abc123" are different records.
  • An External ID can act as the link to a parent record, so a contact can be tied to its account in the same step. The parent must already exist.

Data Loader’s upsert wizard asks which field to match on and, if your file holds the External IDs of related records, which field to use for each relationship. For speed, Salesforce’s large data volume guidance says insert is fastest, then update, then upsert, and suggests splitting an upsert into a create and an update where you can. In our experience, a first load as insert and later corrections as upsert works well, as long as the External ID is filled in from the start.

4. Load in order, with owners and dates

Trailhead says you cannot load child records if the parents do not already exist, and record owners must exist in Salesforce before you load their data. So we load users first, then accounts, then contacts, then opportunities, cases and activities.

Without extra set-up, every migrated record shows the load date as its Created Date. Salesforce lets you keep the dates and users from the old system on Account, Case, Contact, Lead, Opportunity, Task, Event, custom objects and some others. You switch on "Set Audit Fields upon Record Creation" and "Update Records with Inactive Owners" in Setup under User Interface, then give the permission to the user who runs the load through a permission set or profile. The only audit field you cannot set is SystemModstamp. "Update Records with Inactive Owners" lets you load records owned by people who have since left.

Watch for data skew. Salesforce’s large data volume guidance says to avoid any user owning more than 10,000 records, and to spread child records so no parent has more than 10,000. We would not load all unowned records against one integration user for this reason.

5. Hold back automation and sharing during the load

Validation rules, triggers, workflow rules and sharing calculations all run as records are added. Trailhead says Salesforce runs validation rules before records are imported, and that records which fail are not imported. Salesforce’s guidance for large loads is to disable Apex triggers, workflow rules and validations during the load and process records afterwards.

  • Set validation, assignment and similar rules to inactive for the load, and list each one so it is switched back on.
  • Triggers need more preparation: Trailhead describes a custom setting with a checkbox that controls whether each trigger fires.
  • Salesforce suggests a Public Read/Write sharing model during an initial load, to avoid sharing calculations as each record is added, or the defer sharing calculation permission.
  • In Data Loader, an assignment rule set for cases or leads overrides the Owner values in your file.
  • Group child records by parent in each batch to reduce record locking. Data Loader’s serial mode for Bulk API processes one batch at a time if locking is still a problem, at the cost of a slower load.

6. Test, load and check

We would run the whole load into a sandbox first, then count records per object and check a sample against the source. To load into a sandbox, Salesforce says to change Data Loader’s server host to your sandbox address. For each run, Data Loader writes a success file and an error file, and its "Start at row" setting restarts a failed load where the last successful operation finished.

Bulk API limits that affect a migration

LimitBulk API 2.0
Records per rolling 24 hours150,000,000
Batches per rolling 24 hours (shared with Bulk API)15,000
File size per job150 MB, so upload no more than 100 MB of data
Fields per record5,000
Characters per record400,000
Job results kept7 days after the job completes
From Salesforce, "Bulk API and Bulk API 2.0 Limits and Allocations", checked 26 November 2026. Base64 encoding adds about 50% to the upload, hence the 100 MB figure. In Data Loader, the import batch size is up to 200 records with SOAP API and 10,000 with Bulk API; Bulk API 2.0 sets it automatically.

Trailhead says Data Import Wizard imports can be followed in Setup under Bulk Data Load Jobs. If a Bulk API file times out, Salesforce says to split it into smaller files and try again, and to check the results, because some records may have loaded even when processing fails.

For the final load, we would freeze changes in the old system, run the same steps that worked in the sandbox, switch automation and sharing back on, and have each team check a handful of their own records before sign-off.

Our advice

  • Do at least one full rehearsal. In our experience, the second test load finds the problems the first one hid behind its errors.
  • Fix data at the source before the load. Correcting it in Salesforce afterwards, record by record, takes longer.
  • Agree the counts you expect per object before loading, so checking is a comparison.
  • Plan the cut-over day: when the old system becomes read-only, and who answers questions in the first week.

How we handle a migration

Black Cloud is a UK Salesforce implementation partner that works only on Salesforce, run by its two founders, with 12+ years of hands-on CRM experience and 96% client retention. We work on Sales Cloud, Service Cloud, CPQ and Account Engagement across the UK and Ireland, remotely and in person.

A migration can run inside one of our managed services packages, from £950 a month excluding VAT, on the package’s monthly hours. Where a standalone project is needed, we work on time and materials, billed monthly, and the consultants who build it can stay on after go-live. See Salesforce implementation for how it works, or contact us to talk through your data.

Sources

  1. Salesforce Trailhead, "Import Data" (Data Management module) (checked 26 November 2026)
  2. Salesforce Trailhead, "Load Your Data" (Large Data Volumes module) (checked 26 November 2026)
  3. Salesforce Trailhead, "Export Data" (Data Management module) (checked 26 November 2026)
  4. Salesforce Developers, Data Loader Guide, "Data Loader" (checked 26 November 2026)
  5. Salesforce Developers, Data Loader Guide, "Configure Data Loader" (checked 26 November 2026)
  6. Salesforce Developers, Data Loader Guide, "Insert, Update, or Delete Data Using Data Loader" (checked 26 November 2026)
  7. Salesforce Developers, SOAP API Developer Guide, "upsert()" (checked 26 November 2026)
  8. Salesforce Developers, Object Reference, "System Fields" (checked 26 November 2026)
  9. Salesforce Admins blog, "How I Solved This: Migrating Data While Keeping IDs Consistent" (checked 26 November 2026)
  10. Salesforce Developers, "Bulk API and Bulk API 2.0 Limits and Allocations" (checked 26 November 2026)
  11. Salesforce Developers, Large Data Volumes best practices, "Loading Data from the API" (checked 26 November 2026)
  12. Salesforce Developers, Large Data Volumes best practices, "General" (checked 26 November 2026)

Questions

Common questions.

What is the best tool for a Salesforce data migration?

For up to 50,000 records of a supported object, Salesforce’s Data Import Wizard in Setup is, in our view, the simplest. For larger loads, other objects, or loads you need to repeat, Data Loader handles up to 150 million records at a time with Bulk API 2.0. Salesforce lists Data Loader for Enterprise, Performance, Unlimited and Developer editions.

In what order should we load data into Salesforce?

Parents before children. We load users, then accounts, then contacts, then opportunities, cases and activities. Salesforce says child records cannot be loaded if their parents do not exist yet, and record owners must exist before their records are loaded.

Can we keep the original created dates from our old system?

Yes, on Account, Contact, Lead, Opportunity, Case, Task, Event, custom objects and some others. Switch on "Set Audit Fields upon Record Creation" in Setup under User Interface, give that permission to the user running the load, and include the created and last modified values in your file when the records are first created.

How do we avoid duplicates when we reload data?

Use upsert with a Unique External ID field holding the old system’s ID. Salesforce updates a record when the ID matches once, creates one when there is no match, and reports an error when it matches more than once, so a second run updates rather than duplicates.

Should we switch off validation rules during a migration?

Our advice is yes, for the load itself. Salesforce runs validation rules before importing records and rejects those that fail, and its large data volume guidance suggests disabling triggers, workflow rules and validations during big loads. List every rule you switch off and switch each one back on afterwards.

Related

Next step · Salesforce implementation

Salesforce implementation, billed monthly.

We build it inside a managed services package, or on time and materials billed monthly. The consultants who build it can stay on after go-live.