Data migration · Leads

Converted Leads are the one object you can’t fix with an update afterwards. The conversion fields only go in on insert, and they have to point at Accounts, Contacts and Opportunities that already exist in the new org.

5 fieldsIsConverted, ConvertedDate and three Converted IDs
Insert onlyNo updating conversion data later
Leads lastafter Accounts, Contacts and Opportunities
4‑minute videoThe whole thing, start to finish
On this page
  1. The problem
  2. The five fields
  3. Insert only
  4. How to run it
  5. Check the reports
  6. Gotchas and FAQ
Watch on YouTube ↗
The problem

Converted Leads don’t update. Ever.

The conversion fields on Lead can only be set when the Lead is inserted. Load the Leads first and patch the conversions later, and you’ll be deleting and reloading them.

When a Lead is converted, Salesforce creates an Account, a Contact and usually an Opportunity, and writes their IDs back onto the Lead. The video’s example: Coral Benedite at Pro Dynamics becomes a Pro Dynamics Account, a Coral Benedite Contact and an Opportunity.

Those conversion fields are what the Leads with Converted Lead Information report type runs on. Migrate the Leads without them and every conversion report and dashboard in the new org quietly shows nothing.

Diagram of a converted Salesforce Lead creating an Account, a Contact and an Opportunity
One Lead in, three records out, and the Lead remembers all three.

Prefer to read? Everything in the video is written out below.

The fields

Five fields carry the conversion.

Add these to the Lead file for every converted Lead.

FieldWhat it holds
IsConvertedTRUE for converted Leads
ConvertedDateThe original conversion date
ConvertedAccountIdThe Account created by the conversion
ConvertedContactIdThe Contact created by the conversion
ConvertedOpportunityIdThe Opportunity, if one was created. Leave blank if not

The IDs have to be the new org’s IDs. The Account, Contact and Opportunity IDs from the old org mean nothing in the new one. Load those objects first, then swap each old ID for its new one using the success files.

The rule

Insert only. Plan for it.

These fields can be written on insert and not on update. That decides your load order.

Say you have 500 Leads and 200 of them are converted.

WON’T WORK

Insert all 500 Leads, then update the 200 converted ones with their conversion fields.

WILL WORK

Insert all 500 in one go, with the conversion fields filled in on the 200 converted rows and blank on the other 300.

Already loaded them without the fields? The fix is to delete those Leads and insert them again with the conversion data.

The load

How to run it.

Accounts, Contacts and Opportunities first. Leads last.

  1. 1

    Load the targets first

    Accounts, Contacts and Opportunities go in before the Leads, and you keep every success file. Here’s the Account load.

  2. 2

    Export the Leads with conversion data

    From the source org, export Leads including the five conversion fields.

  3. 3

    Swap old IDs for new

    VLOOKUP each Converted Account, Contact and Opportunity ID against the success files to get the new org’s IDs. A legacy External ID on each object makes this easy.

  4. 4

    Insert the Leads

    One Data Loader insert, converted and unconverted together, with the conversion fields mapped.

Make sure the converted rows’ Lead Status is a value marked as Converted in the new org. Loading the unconverted ones too? Here’s how to insert Leads with Data Loader.

After the load

Check the reports, not just the success file.

The real test is whether conversion reporting works the way it did in the old org.

  • Conversion status: Leads converted in the old org show as converted in the new one
  • Related records: each converted Lead points at the right Account, Contact and, where there was one, Opportunity
  • Reports: a Leads with Converted Lead Information report, filtered to converted Leads, shows the same numbers as the old org
  • Dashboards: anything built on conversion data still populates
Gotchas

The questions people ask.

Can I add the conversion data with an update later?
No. The conversion fields can only be set on insert. Missed them means delete and re-insert.
Does every converted Lead have an Opportunity?
No. A Lead can be converted without creating one. Leave ConvertedOpportunityId blank for those.
Which IDs go in the Converted ID fields?
The IDs of the Account, Contact and Opportunity in the new org, after you’ve loaded them.
Can I use Data Loader for this?
Yes. It’s a normal insert on Lead, with the five conversion fields mapped.
What’s the biggest mistake?
Treating the conversion fields like normal fields you can fill in later.
Data Migration Masterclass

Load order is the whole game.

The Masterclass walks through a full migration in load order, including the objects like converted Leads that only give you one chance.

Know someone about to migrate converted Leads?

Share on LinkedIn
Doing this for a whole org, not just one object?

One 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 →