Salesforce data migration best practices are mostly about doing things in the right order and proving each step worked.
Get the metadata in first, clean and map the source data and load parents before children. Rehearse in a sandbox and keep a tested backup in case you have to roll back.
If the job of moving data out of a legacy CRM, or between orgs, just landed on your desk, start here. What follows is the data migration process we'd use, ten steps long, with a cut-over checklist after it.
Why do Salesforce data migrations go wrong?
Salesforce records depend on each other, which is why the migration process gets complex so quickly. An Opportunity needs its Account, a Case wants a Contact, and one insert can set off a flow or a trigger you'd forgotten about.
Load records before their parents, data relationships or structure exist and you get orphans, failed loads and automation firing at odd moments. Worse, personal or health data can land before its protections are switched on.
The legacy source system won't be clean either. Years of use leave duplicates, incomplete records and picklist values Salesforce has never seen, and those data quality issues travel with the records.
Scale makes it worse. No one eyeballs a few hundred thousand records, and one bad mapping can damage data integrity in thousands of them at once.
Salesforce data migration tools compared
Salesforce's own import guidance sorts its tools by volume and edition. Dedicated data migration tools can go further by keeping relationships intact and logging every job in an audit trail.
| Tool | Volume | What it does | Best fit |
|---|---|---|---|
| Data Import Wizard | Up to 50,000 records | In-browser imports of accounts, contacts, leads, solutions, campaign members and custom objects | Small, one-off loads by an admin |
| Salesforce Data Loader | 5,000 to 5 million records | Insert, update, delete or export records from a desktop app | Bulk loads where you script the order yourself |
| A migration tool such as Flosum Data Migrator | Large, multi-object jobs | Org-to-org moves with parent-child relationships preserved and every job logged | Repeatable migrations, sandbox seeding and audited moves |
Your edition narrows the choice of tools. The same import guidance lists Data Loader for Enterprise, Unlimited, Performance, Developer and Database.com, while the Import Wizard runs on everything except Personal and Database.com.
If data is coming from several data sources and needs transformation on the way in, look at tools like ETL platforms or middleware. The steps in this migration strategy don't change.
How do you migrate data to Salesforce, step by step?
The steps go from scoping to sign-off, with migrating data into Salesforce in the middle. If you'd rather watch, our Data Migration Made Easy session covers the same ground, and the rest of the series is on the webinars page.
Step 1: Scope the data and name the owners
First define which objects, record types and date ranges move, and whether each one lands as an insert or as an update to existing data. The migration plan should also name what stays behind and which reports people need on day one.
Put a name on every task early. The project manager owns the timeline, each data set gets a business owner, an admin runs the loads, and every group of end users gets a tester.
Write down who can approve changes to the plan. That one line is where data governance in the new Salesforce org starts.
Step 2: Map regulated fields
Go through the target objects and flag every field that holds health, financial or personal data, along with the compliance requirements that cover it. If you need the detail, we've written about HIPAA in Salesforce, SOX compliance and GDPR data residency.
For each of those fields, decide between Shield Platform Encryption and masking in lower environments. No transferring data until the compliance owner signs off.
Step 3: Deploy the metadata first
Records need somewhere to land, so the target Salesforce instance gets its metadata first: objects, fields, picklists, record types, validation rules, permission sets. Keep all of it in version control and the target org's data structure is documented without extra work.
Encryption and field-level security have to be live before the first load of incoming data. Otherwise sensitive data sits there unprotected until somebody spots it.
Step 4: Clean and map the source data
Start with a data assessment of the source data, before you change a thing. Look for duplicates, blank required fields, odd date formats and values that won't fit, and do the data cleanup in the source system rather than in Salesforce.
Carry each record's old ID across to the target object. Child records use it to find their parents, you use it to trace a record back, and as an External ID field it lets upsert do the matching.
That's why Salesforce's upsert documentation recommends upsert over create in most cases, to avoid duplicates. Rerun a load with the external ID in place and it updates existing records instead of copying them.
Next is data mapping, in one shared sheet where every source field is matched to a Salesforce field. Document each transformation as you go, plus any custom fields or custom objects Step 3 still has to create.
Watch the data types carefully. A date stored as text, or a picklist value the target won't accept, either fails outright or lands quietly wrong.
Step 5: Load parents before children
Users and reference data go in first, then accounts and contacts, then opportunities, cases and other child records. A lookup can't resolve to a parent that isn't there yet.
Switch off automation that shouldn't run on historical records, because nobody wants a five-year-old case sending a welcome email. Turn it back on once the load is finished.
Step 6: Rehearse in a sandbox
Rehearse in a Full sandbox. It copies all production data and metadata, which makes it the closest Salesforce environment to production, so start each trial migration there with a small, high-risk batch.
When a run fails, fix the issues in the source data and reconcile before you try again. Agree up front what a pass looks like (say, zero critical errors on a full run) and keep rehearsing until you hit it.
Regulated data gets masked even in a sandbox. Our post on data masking shows how to set that up.
Step 7: Take a data backup and plan the rollback
Before cut-over, take a Salesforce data backup of production records and metadata, then prove the restore actually works. Our backup and recovery strategy guide covers the details.
Salesforce's export service produces CSV backup files weekly on Enterprise, Performance and Unlimited, or monthly on most other editions. Salesforce emails a link to download the zip files, which are deleted after 48 hours.
That data export copies records but can't restore them, so you'll need your own reload plan.
Settle now what triggers a rollback and who gets to call it. Nobody makes that decision well at 2 a.m. on cut-over night.
Step 8: Check every integration
Integrations break quietly, so list everything that reads or writes the migrated Salesforce objects, from ERP and third-party marketing tools to middleware and that old nightly job. After the move, test each connection and its mapping.
Step 9: Schedule the cut-over
Don't migrate during month-end close, quarter-end reporting or the last week of a sales push. Pick a migration window clear of those to limit disruption, freeze other org changes, and keep your validators on call.
Step 10: Validate and document
Data validation after the final migration starts with record counts per object. Then spot-check parent-child links and sample field values for data accuracy, confirming the data was accurately migrated.
Once each data owner signs off, users get training on where their records live in the new system and what's changed. File the plan, mapping sheet, logs and sign-offs together as your audit trail.
Keep an eye on data quality after go-live, even when the migration went well. A simple post-migration dashboard of duplicate counts, blank required fields and failed integration syncs usually flags trouble before users do.
How do you load large data volumes into Salesforce?
For big loads, Salesforce's guide to loading large data volumes recommends Bulk API 2.0 for anything over 2,000 records. Errors push you into much slower single-row processing, which is another reason for cleaning the data first.
Insert is faster than update, and update is faster than upsert, so use the lightest operation that will work. Where you can, the guide suggests splitting an upsert into separate create and update jobs.
The guide also recommends turning off Apex triggers, workflow and validation rules during the load, then running batch Apex afterward. Group child records by parent in each batch to avoid record-locking conflicts, and defer sharing calculations.
Salesforce data migration checklist
Work through this list before cut-over for a successful Salesforce data migration. Every line points back to one of the steps.
| Phase | Check |
|---|---|
| Plan | Objects, owners and insert-or-update decisions agreed |
| Compliance | Regulated fields listed, protections decided and signed off |
| Structure | Metadata, security and encryption deployed in the target org |
| Data | Source data quality fixed, IDs kept, data mapping sheet complete |
| Rehearsal | Sandbox runs meet your pass criteria |
| Safety net | Backup taken and restore tested, rollback triggers written down |
| Integrations | Every connected system tested against the new data |
| Cut-over | Window agreed, change freeze in place, validators available |
| Sign-off | Counts and relationships checked, owners signed off, records stored |
How do you roll back a failed Salesforce data migration?
Restore from the Step 7 backup, taking metadata and records from the same point in time. That way the data still fits the structure it came from.
You often won't need a full rollback. A restore tool that can put back selected objects or records saves you undoing a load that mostly worked.
Don't plan a rollback around the Recycle Bin, which keeps deleted records only for a limited time, as our post on recovering deleted records explains. Our backup strategy post covers what to use instead.
How does Flosum Data Migrator help?
Flosum Data Migrator moves data between Salesforce orgs, upstream or downstream, and keeps parent-child relationships intact. Flosum says every migration and seeding job is logged, versioned and auditable.
It can also seed sandboxes with masked data for Step 6, and it fits into CI/CD pipelines. Our guides to sandbox seeding and sandbox types cover the setup.
FAQs
What are Salesforce data migration best practices?
Deploy metadata before data, clean and map the source, and load parents before children. Then rehearse in a sandbox and keep a tested backup for rollback.
Should I use Data Loader or the Data Import Wizard?
Mostly volume. Salesforce's import guidance puts the Import Wizard at up to 50,000 records and Data Loader at 5,000 to 5 million, and Data Loader can also delete and export.
In what order should you load Salesforce data?
Users and reference data first, then accounts, then contacts, then child records such as opportunities and cases. If a child goes in too early, its lookup has nothing to point at.
How do you migrate Salesforce data without losing any?
Rehearse in a sandbox until the runs pass, back up and test the restore before cut-over, and check record counts and relationships afterward.
Can you roll back a Salesforce data migration?
Yes, as long as you backed up data and metadata beforehand. Restore both from the same point in time so the records still fit their structure.
What is the fastest way to load large data volumes into Salesforce?
Bulk API 2.0, which Salesforce's large data volumes guide suggests for anything over 2,000 records. Clean the data beforehand, use insert where you can, and defer sharing calculations until the load is done.
Should you turn off automation during a Salesforce data migration?
For big loads, yes. Salesforce suggests disabling Apex triggers, workflow and validation rules, running batch Apex afterward, and turning everything back on once the data checks out.
Book a demo to see an org-to-org migration in Flosum Data Migrator.
Thank you for subscribing



