# When must administrators utilize Data Loader instead of the browser-based Data Import Wizard?

**Topic:** Admin · **Difficulty:** Medium · **Tags:** Admin, Data Loader, Mass Data Operations

Read it on the site: https://www.forcechallenges.com/interview-questions/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:**
1. Download Data Loader (Setup > Data Loader) and log in with username/password or OAuth, selecting the correct login server (production or sandbox).
2. Pick an operation: Insert, Update, Upsert, Delete, Hard Delete, Export, or Export All (includes deleted and archived).
3. Select the object and a CSV; map CSV columns to fields (saved .sdl mapping files can be reused).
4. Run; review the success and error CSVs written to the output folder.
5. 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:**
```text
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
```

**Hidden gotchas & must-remember points:**
- Import Wizard is 50,000 records; Data Loader is documented at up to 5 million records through the UI.
- Disable or bypass automation (via custom permission or a hierarchical custom setting checked in triggers and flows) for large migrations; otherwise limits and lock errors appear.
- Dates and times import in UTC unless the client time zone is set; a frequent source of off-by-one-day bugs.
- Loading owners or lookups needs 18-character IDs (or an External ID mapping with relationship notation).
- Hard Delete is irreversible; the normal recycle bin keeps items for 15 days.
- Command-line mode is Windows-oriented; check current Data Loader docs for platform support.
- Always test in a sandbox with a small file first.

**Best practice:** Use External IDs for upserts, load parents before children, and keep the success and error files as an audit trail.

---
Source: ForceChallenges · last updated 2026-11-02
