When must administrators utilize Data Loader instead of the browser-based Data Import Wizard?
Answer
Basics: Data Import Wizard is a browser tool for simple inserts and updates and is limited to 50,000 records at a time and to certain objects (accounts, contacts, leads, solutions, campaign members, and custom objects). Data Loader is a client application that uses the SOAP or Bulk API, supports every API-accessible object, and is the standard admin tool for big data jobs.
How it works:
- Download Data Loader (Setup > Data Loader) and log in with username/password or OAuth, selecting the correct login server (production or sandbox).
- Pick an operation: Insert, Update, Upsert, Delete, Hard Delete, Export, or Export All (includes deleted and archived).
- Select the object and a CSV; map CSV columns to fields (saved .sdl mapping files can be reused).
- Run; review the success and error CSVs written to the output folder.
- For automation, use the command-line interface with a config file, or schedule via OS tools.
Advanced / deep dive: Data Loader can use Bulk API or Bulk API 2.0 for large jobs, trading single-transaction control for throughput; batch size is up to 200 for SOAP and larger for Bulk. For Upsert use an External ID or record ID field, ideal for integrating with outside keys. Hard Delete bypasses the recycle bin and needs the "Bulk API Hard Delete" permission. Alternatives to know: Data Import Wizard (simple), dataloader.io and commercial ETL tools, Salesforce CLI sf data commands, and Bulk API directly. Data Loader runs your automation (triggers, flows, validation, duplicate rules) on every row. Plan for that with performance and the possibility of record locking.
Code / config example:
Data Loader config (process-conf.xml) essentials:
sfdc.entity = Account
process.operation = upsert
sfdc.externalIdField = ERP_Id__c
sfdc.useBulkApi = true
dataAccess.type = csvRead
process.mappingFile = accountMap.sdl