Sub topic 1
Which tool to use: wizard or Data Loader
Prerequisites
This chapter assumes you already know the following:
- What Salesforce objects, records, and fields are.
- How to open and edit a CSV file in a spreadsheet or text editor.
- That you have access to a Salesforce org. A sandbox or Developer Edition org is best for practice.
- That your user has permission to create records on the target object and to use the import tools.
Two tools, one job
Salesforce offers two standard ways to load records from a CSV file.
- The Data Import Wizard runs in your browser. You start it from Setup, pick an object, upload a file, map columns, and start the import.
- Data Loader is a client application you install on your computer. It connects to your org through the API and supports more operations and much larger files.
Both read CSV files, and both create records. The difference is in scope, volume, and control. Choosing the wrong one costs time. You may hit a limit halfway through a job, or set up an installed tool for a ten-row file.
Comparing the tools
| Question | Data Import Wizard | Data Loader |
|---|---|---|
| Where does it run? | In the browser, from Setup | Installed on your computer |
| Operations | Insert, update, and upsert (add and update together) | Insert, update, upsert, delete, hard delete, and export |
| Typical volume | Up to 50,000 records per import | Up to 5 million records, depending on the API used |
| Objects | A limited set of standard objects, plus custom objects | Almost all objects that the API exposes |
| Duplicate matching | Built in, by name, email, or Salesforce ID, depending on the object | None built in. You use IDs or external IDs |
| Export data | No | Yes, using a SOQL query |
| Automation | No | Yes, from the command line |
Limits and supported objects change between releases. Check the current Salesforce documentation before you plan a large job.
A simple decision flow
Start with what the job needs, not with which tool you know best.
Use the wizard when all of these are true:
- The file has fewer than 50,000 rows.
- The object is supported by the wizard.
- You want Salesforce to help avoid duplicates for accounts, contacts, leads, or similar objects.
- You prefer a guided process in the browser.
Use Data Loader when any of these is true:
- You need to delete records or export them.
- The file is large.
- The object is not available in the wizard.
- You must link records by Salesforce ID or external ID in a controlled way.
- You want success and error files for every run.
- You plan to repeat the job on a schedule.
Example: the same file in both tools
This insert file creates two Account records. Both tools can load it.
Name,Phone,Industry,Website
Acme Corp,555-0100,Manufacturing,https://www.acme.example
Globex Ltd,555-0101,Technology,https://www.globex.exampleIn the wizard, you choose Accounts and Contacts, pick "Add new records", and map the four columns. The wizard can also check whether an account with the same name already exists.
In Data Loader, you choose Insert, select the Account object, and map the columns. Data Loader does not check for duplicates. If you run the same file twice, you get four accounts instead of two.
Common mistakes
- Using the wizard for an update by ID. The wizard matches on fields such as name or email, not on any column you choose. If you must update specific records by their Id, use Data Loader.
- Expecting Data Loader to catch duplicates. It inserts every row. Use upsert with an external ID, or clean the file first.
- Starting with the larger tool for a tiny job. Installing and logging in to Data Loader adds setup work. For a small, simple insert, the wizard is faster.
- Skipping a backup. Before any update or delete, export the current values with Data Loader.
SELECT Id, Name, Phone, Industry FROM Account WHERE Industry = 'Energy'The next chapters cover CSV preparation first, because both tools depend on a clean file.
Exercise
You need to load 200,000 Contact records and delete 300 outdated Leads in the same week. Which tool do you use for each task, and why?
Show answer
Use Data Loader for both. The Contact file is above the wizard's 50,000-record limit, and the wizard cannot delete records at all. Data Loader handles large files and supports delete. Export the Leads first as a backup.
Exercise
A colleague runs the same insert file through Data Loader twice. What happens, and what could they have done instead?
Show answer
Every row is inserted twice, so duplicate records are created, because Data Loader has no built-in duplicate matching. They could have used upsert with an external ID field, or used the Data Import Wizard, which can match on fields such as name or email.