Lead imports look like any other insert, right up until every Lead lands on the person who ran it, half the rows bounce for a blank Company, and Email Opt Out is nowhere in the mapping screen. Here is the prep that avoids all three.
On this page
- The problem
- Prep 1 · Required fields
- Prep 2 · Assignment rule
- Prep 3 · Email Opt Out
- Prep 4 · Save the CSV
- Insert the Leads
- Check the results
- Gotchas and FAQ
Leads come with rules attached.
A Lead import isn’t just rows in. Required fields depend on B2B or B2C, the assignment rule decides who owns each Lead, and one field hides from Data Loader by default.
Leads arrive from everywhere: web forms, bought lists, trade show scans, the old CRM. The insert itself is quick. What causes trouble is the stuff around it: blank Company names, every Lead landing on the person who ran the load, and an Email Opt Out column that never shows up in the mapping screen.

Prefer to read? Everything in the video is written out below.
Fill the required fields.
B2B Leads need Last Name and Company. B2C Leads in a Person Account org need Last Name.
| Model | Required | Converts to |
|---|---|---|
| B2B | Last Name, Company | Account + Contact (+ Opportunity) |
| B2C (Person Accounts, e.g. FSC) | Last Name | Person Account |
Filter the Company and Last Name columns for blanks, and fill them with obvious placeholders: Unknown Company, Unknown Last Name. The rows load, and the placeholders are easy to find and clean up later. Give every row a Lead Status that exists in the new org.
Migrating history? Created By and Created Date can be loaded too, but only on insert and only with the Set Audit Fields upon Record Creation permission. Loading converted Leads? Those need five extra fields, on insert only.
Get the Lead Assignment Rule ID.
Paste the active rule’s ID into Data Loader’s settings, and each Lead is assigned by your rules instead of to you.
- In Data Loader click Export and tick Show all Salesforce objects.
- Pick Assignment Rule (it holds both Lead and Case rules), select all fields and finish.
- In the CSV, find the row with
Active = TRUEandSobjectType = Lead. Copy its ID, which starts with01Q. - In Data Loader Settings, paste it into Assignment rule and click OK.
Using the assignment rule? Leave Owner ID out of the file. Only map Owner when you want to bypass the rules and put Leads on specific users.
Unhide Email Opt Out.
If Email Opt Out isn’t in Data Loader’s field list, it’s field-level security, not you.
- Object Manager → Lead → Email Opt Out → Set Field-Level Security.
- Make it visible and editable for the profile doing the load.
- Restart Data Loader, or log out and back in, so it picks up the change.
Save the CSV.
One last check, then save as CSV.
- Company filled for B2B rows, Last Name on every row
- Lead Status valid on every row
- Required custom fields filled
- No Owner column if you’re using the assignment rule
Save as CSV (Comma delimited) with a name you’ll recognise, like Leads_Prepared.csv.
Insert the Leads.
Insert, Lead, your CSV, Auto-Match, review, run.
- Click Insert, choose Lead and browse to the CSV.
- Create or Edit a Map → Auto-Match Fields to Columns, then check every mapping. Headers that are API names make this quick.
- Pick an output folder and finish.
Name the column “Lead Status”, not “Status”. Data Loader’s success and error files add their own STATUS column. A source column called Status collides with it, and your original values get hard to read in the output.
Read both files, then spot-check.
The success file has the new Lead IDs (starting 00Q). The error file says why every failed row failed.
The most common error is a duplicate: a duplicate rule found a Lead with the same email, name or company. Tell the client it already exists, remove it from the file, or, only with the client’s OK, adjust the duplicate rule. Other usual suspects are in the Data Loader error codes post.
Paste both files into tabs in the workbook (Leads Prepared, Lead Success, Lead Errors). Then open several Leads from different parts of the file and check the fields, the Lead Status, any audit fields, and that the owner came from the assignment rule.
The questions people ask.
Insert or Upsert?
Every Lead was assigned to me
Email Opt Out isn’t in the field list
Why did some rows fail?
Should I test first?
Leads are rarely the only object.
The Masterclass walks through the full migration in load order, including converted Leads, Campaigns and the activity history that hangs off them.
Know someone about to import a pile of Leads?
Share on LinkedInOne CSV is a tutorial. Forty objects, 15 years of history and a go-live date is a project. That’s the part I do for a living.
See how I run migrations →