Sub topic 4
Importing with the Data Import Wizard
This chapter walks through a complete import with the Data Import Wizard, the browser-based tool in Salesforce Setup. It assumes you can already edit CSV files, know the difference between objects, records, and fields, and have a sandbox or Developer Edition org to practice in. Choosing between the wizard and Data Loader, preparing the CSV, and required fields were covered earlier. Here the focus is on running the wizard and understanding what each step does.
What the wizard does and where its limits are
The Data Import Wizard reads a CSV file, lets you map its columns to Salesforce fields, and creates or updates records. It runs in the browser, so there is nothing to install. It is designed for admins who load a modest amount of data a few times.
Know the limits before you start, because they decide whether the wizard is the right tool:
- It handles up to 50,000 records per import.
- It supports a fixed set of standard objects (accounts and contacts, leads, solutions, campaign members) and custom objects. Many other standard objects are not available.
- It can insert new records, update existing ones, or do both in one run.
- It cannot delete records or export data. It does not offer an explicit upsert by external ID for every object. Matching options depend on the object.
- It will not fire some automation in the same way a full API load can, and it reports errors in a single file after the run.
If your job exceeds these limits, use Data Loader instead.
Before you open the wizard
Take these steps first so the wizard has nothing to reject:
- Save the file as CSV with UTF-8 encoding, with one header row.
- Confirm every required field for the target object has a value in every row.
- Check that picklist values, dates, and numbers match what the org expects.
- Make sure your user has the permission "Modify All Data" or the object permissions the wizard needs, plus Create or Edit on the object and its fields.
- Review active validation rules, flows, and triggers on the object, since they run during the import.
Here is a small file for the Account object. The same file is used in the walkthrough below.
Name,Phone,Industry,Website
Acme Corp,555-0100,Manufacturing,https://www.acme.example
Globex Ltd,555-0101,Technology,https://www.globex.exampleWalking through the wizard
Step 1: Open the wizard
In Setup, type "Data Import Wizard" in Quick Find and open it. Click Launch Wizard. The first page asks what kind of data you are importing.
Step 2: Choose the data
Pick the object type. For standard objects, choose Standard Objects and then select Accounts and Contacts, Leads, and so on. For custom objects, choose Custom Objects and select yours.
Then choose the action:
- Add new records creates a record for every row.
- Update existing records changes only records the wizard can match to a row.
- Add new and update existing records updates matches and creates records for rows with no match.
The action you pick decides which matching options appear next, so choose with care.
Step 3: Set matching and options
For update actions, you choose how the wizard finds existing records. The next chapter section covers matching in detail. For add-only imports, you can still set options such as whether to trigger workflow rules and processes, and which campaign to add the records to when you import leads or contacts.
Step 4: Upload the file
Drag the CSV into the upload area or browse to it. Choose the character encoding. UTF-8 is the usual choice. If accented characters look wrong in the preview, the encoding setting is the first thing to check.
Step 5: Map the fields
The wizard automatically maps columns whose header matches a field label or name. Everything it cannot match shows as unmapped. For each unmapped column, click Map and select the target field, or leave the column unmapped to skip it.
Two points matter here:
- Mapping is by column, not by position. Reordering columns in the file does not break a mapping, but renaming a header can.
- Unmapped columns are ignored silently. If a column you expected to load shows as unmapped, the data will not arrive.
Before moving on, scan the mapping list. A column mapped to the wrong field is harder to repair after the load than one you fix now.
Step 6: Start the import
Review the summary and click Start Import. The import runs in the background. You can leave the page. The Bulk Data Load Jobs page in Setup shows the status of the job: Open, In Progress, Completed, or Failed. You also receive an email when the job ends.
Reading the result
When the job ends, open Bulk Data Load Jobs in Setup. For each job you see how many records were processed and how many failed. If any rows failed, a link lets you download an error file. The file holds the failed rows with an added error column that explains the cause, such as a missing required field or a validation rule message.
The usual repair loop is:
- Download the error file.
- Read the error column and fix the data in each row.
- Delete the error column, keep the original headers, and save as CSV.
- Import only the corrected rows.
Do not re-import the whole original file. Rows that already loaded would be created a second time if you chose Add new records.
Common errors and what they mean
| Message or symptom | Likely cause | Fix |
|---|---|---|
| Required fields are missing | A required field is empty or the column is unmapped | Add a value, or map the column |
| Invalid picklist value | The text does not match an active picklist value | Use the exact value, or add it to the picklist |
| Invalid date or number format | Format does not match your user locale | Reformat the column to match your locale settings |
| Validation rule error | A rule on the object rejected the row | Correct the data to satisfy the rule |
| Duplicate detected | A matching or duplicate rule blocked the row | Review the matching setup or the duplicate rule |
| Garbled characters | Wrong encoding | Re-save as UTF-8 and pick UTF-8 in the wizard |
Edge cases to watch for
- Date formats follow the importing user's locale. A file with 03/04/2026 loads as March 4 for a US user and as April 3 for a UK user. Where you can, use an unambiguous format such as 2026-04-03.
- Ownership defaults to you. Unless the file and options assign an owner, records you create are owned by the importing user.
- Automation runs. Triggers, flows, and validation rules fire on imported rows. A flow that sends emails can message real customers during a test, so test in a sandbox.
- Large text and line breaks. Fields with commas or line breaks must be wrapped in double quotes in the CSV, or the row splits and the columns shift.
- Leading zeros. Spreadsheet programs can strip leading zeros from values such as postal codes. Format those columns as text before saving.
- Blank cells do not clear data. In an update, an empty cell leaves the existing value alone in the wizard. To remove a value you need another approach, such as Data Loader with its setting for inserting null values.
Verifying the load
After a clean run, check the data directly rather than trusting the job counts:
- Open a list view or report on the object, filtered to records created today by you.
- Compare the count with the number of rows in your file.
- Open several records and confirm that fields such as Industry, Phone, and Website show the values you expect.
- Spot-check any record with special characters or long text.
For a repeatable check, you can also run a SOQL query in the Developer Console.
SELECT Id, Name, Phone, Industry FROM Account WHERE CreatedDate = TODAYIf the count is lower than expected, look at the error file. If it is higher, you may have loaded the same file twice.
Summary of good habits
- Run a small test of five to ten rows first, then the full file.
- Use a sandbox when automation could affect real customers.
- Keep the original file and every corrected version.
- Read the mapping page every time. Do not rely on automatic mapping.
- Verify counts and sample records after the job.
Exercise
You import 200 leads and the wizard reports 12 failed rows. A colleague suggests fixing the 12 errors in the original file and re-importing all 200 rows with "Add new records." Why is this a bad idea, and what should you do instead?
Show answer
The 188 rows that already loaded would be created again, which produces duplicate leads. Download the error file, correct only the 12 failed rows, remove the error column, and import just those 12 rows. Then verify that the total number of leads matches the 200 rows in your original file.
Exercise
A user in the United Kingdom imports a file with the date 03/04/2026 in a Close Date column. The record shows March 4 instead of April 3. What caused this, and how do you prevent it?
Show answer
The import was read with a locale that expects month first, or the date was ambiguous for the locale in use. Wizard date parsing follows the importing user's locale settings. Prevent it by writing dates in an unambiguous format such as 2026-04-03, or by importing as a user whose locale matches the file, and then checking a sample of records after the load.