Summary
- To use Salesforce Data Loader, install Java 17 or later, then Data Loader v67, log in with OAuth and run the wizard for your operation, because the app won't start without Java and the old device-code login no longer works.
- If your contacts need their parent accounts, use Upsert with External IDs, so Data Loader links each record without a lookup of Salesforce IDs first.
- If dates land a day early, set the Time Zone in Settings, because Data Loader reads dates without an offset in your computer's time zone.
- If some rows fail, fix them in the error file and run the same operation with that file, so only the failed rows load again.
- If you need scheduled loads, run Data Loader from the Windows command line with Task Scheduler, since it has no scheduler of its own.
If your CSV has more than 50,000 rows, or you need to delete, export or schedule loads, the Data Import Wizard won't help you and Data Loader will. It's a desktop app, though, and it's picky. It won't even install without Java 17. It logs in differently since Salesforce dropped the device code in September 2025. And unless you set the time zone, it reads dates in your computer's time zone, which is how birthdays end up a day early.
This guide shows how to use Salesforce Data Loader v67 on Windows and macOS, step by step and with fresh screenshots.
What Salesforce Data Loader Does and When to Use It
Salesforce Data Loader is a client application you install on your computer to import and export records in bulk. It reads CSV files (or a database connection), writes to Salesforce through the API, and exports query results back to CSV. It runs on Windows and macOS and is available in Enterprise, Performance, Unlimited and Developer editions.
The current release is v67.0.0, published in June 2026 for the Summer '26 release and API version 67. Salesforce supports only the newest release, and there's no auto-update. The closest thing is a setting, on by default, that shows a dialog when a newer version is out. The download and the install are still up to you.
How much can it load? Up to 150 million records in a CSV file with Bulk API 2.0, according to Salesforce's Data Loader Guide. For anything larger, Salesforce recommends a partner or an AppExchange tool.
Salesforce's own guidance on when to use it versus the import wizards in Setup:
| Use Data Loader when | Use the Data Import Wizard when |
|---|---|
| You load 50,000 records or more | You load fewer than 50,000 records |
| The object isn't supported by the wizard | The object is supported by the wizard |
| You reuse complex field mappings regularly | The object has fewer than 50 fields and the mapping is simple |
| You want scheduled loads, such as nightly imports | You want the wizard to catch duplicates by account name and site, or by contact or lead email |
| You export data for backup | You only import |
Before anything else, check that your user has the API Enabled permission. Without it, Data Loader can't log in at all. For a closer look at the two native tools, see our comparison of the Data Import Wizard and Data Loader.
Before You Start: What You Need
Data Loader v67.0.0 runs on Windows 10 and Windows 11 (64-bit, x64) and on macOS 13 Ventura, 14 Sonoma and 15 Sequoia, on both Intel and Apple chips. Linux isn't officially supported. You need at least 120 MB of free disk space and 256 MB of free memory.
Data Loader runs on Java, but it doesn't bring its own. You will need JRE 17 or later installed first. Salesforce stopped bundling Java with the Windows version. Any vendor works; the Data Loader Guide names Azul Zulu and Adoptium Eclipse Temurin, though. For everything below we used Zulu, installed from a command prompt with one line: winget install Azul.Zulu.17.JRE. Data Loader finds Java through JAVA_HOME, so check that it points to your JRE folder after the install.
Copy this checklist into your ticket before the first load:
- Edition: Enterprise, Performance, Unlimited or Developer
- JRE 17 or later installed, and
JAVA_HOMEpointing to it - "API Enabled" on your profile or a permission set
- The object permission for the operation (table below)
- "Bulk API Hard Delete", only if you plan to hard-delete records
- A sandbox to test the load first, with the same fields as production
| Operation | Permission the user needs |
|---|---|
| Insert | Create |
| Update | Edit |
| Upsert | Create or Edit |
| Delete, Hard Delete | Delete (Hard Delete also needs "Bulk API Hard Delete") |
| Mass delete of many records | Modify All Data |
| Export, Export All | Read |
How to Install Data Loader on Windows and macOS
Download the latest .zip from the Data Loader page on Salesforce Developers. The .zip is code-signed: if your security team asks, verify it with jarsigner -verify dataloader_v67.0.0.zip.
Install on Windows

- Right-click the .zip and select Extract All.
- In the extracted Data Loader folder, run install.bat.
- If Windows SmartScreen shows a warning, click More info, then Run anyway.
- Answer the prompts in the command window, including the install folder (the default is
\Users\<username>\dataloader\<version>). - Start Data Loader from the desktop icon, the Start menu or
dataloader.batin the install folder.
Install on macOS
- Extract the .zip into a folder.
- Double-click install.command.
- On macOS 15, the system blocks the file the first time. Open System Settings > Privacy & Security, scroll to the Security section and click Open Anyway next to the "install.command" message, then confirm. On earlier macOS versions, Control-click the file, select Open and confirm.



- Answer the prompts. The default folder is
/Users/<username>/dataloader/<version>.

- Start it from Applications or with
dataloader.appin the install folder.
If the app doesn't open on a Mac but Java is installed, check JAVA_HOME first. A Data Loader maintainer in a GitHub discussion suggested that one such launch failure on macOS Sequoia came from the launch script not finding JRE 17 in JAVA_HOME.
Upgrade to a new version
Don't sit around waiting for Data Loader to update itself. It won't. Every release gets installed fresh, old-school style. You can drop the new version next to the previous one, and they don't mind the company, as long as they're different versions. Two identical ones won't fly. Your settings come with you: config.properties moves from the old version's configs folder into the same folder in the new one. The old version goes out like any other clutter. Folder in the trash, shortcuts right behind it.
How to Log In: OAuth, Password and Sandbox

Logging in changed in 2025. On September 2, 2025, Salesforce removed the OAuth 2.0 Device Flow from the Data Loader connected app for all users and all versions, and the OAuth 2.0 User-Agent Flow went with it. Data Loader v64.1.0, released the same day, supports two methods: OAuth 2.0 Web Server Flow with PKCE (the default) and password authentication.
If you use SSO or MFA, you need v64.1.0 or later and the OAuth option. An old copy that showed a device code to type in a browser no longer works.
To log in with OAuth:
- Pick an operation (Insert, Update, Export and so on). Data Loader asks you to log in at Step 1: Log In.
- Select OAuth and choose the environment: Production or Sandbox.
- Click Log in, finish the login in the browser window that opens, and allow access.
- Return to Data Loader. If you see an authorization error on the first login, close and reopen the browser and try again.
Password authentication still works from the UI and from the command line. Enter your username and your password with the security token added to the end: if the password is mypassword and the token is XXXXXXXXXX, type mypasswordXXXXXXXXXX. If the login keeps failing from the UI, reset the security token and use the new one.
Two settings help in orgs with My Domain. Data Loader logs in through login.salesforce.com and test.salesforce.com by default, and Salesforce recommends switching these to your org's My Domain URLs in Settings. For a sandbox, the URL looks like https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
Errors you may see after the 2025 change, from Salesforce's help article on it:
Error: Unable to complete browser based OAuth login. Contact your Salesforce admin.OAUTH_APPROVAL_ERROR_GENERIC: An unexpected error has occurred during authentication. Please try again.
The usual fix is to install the latest version and log in with the OAuth option again. Admins who want tighter control can log users in through their own External Client App (documented for v64.0.2 and later, with full support added in v66) and then block the old "Dataloader Partner" and "Dataloader Bulk" connected apps, as the Data Loader Guide describes.
Prepare Your CSV File
Most failed loads fail in the file, not in Data Loader. Each operation needs different columns:
| Operation | What it does | Columns the CSV needs |
|---|---|---|
| Insert | Creates new records | The fields you're filling, including every required field |
| Update | Changes existing records, matched by record ID | Id plus the fields to change |
| Upsert | Updates a matching record or inserts a new one | The match column (record Id or an External ID field) plus the fields |
| Delete | Moves records to the Recycle Bin | Id only |
| Hard Delete | Deletes records without the Recycle Bin (Bulk API only) | Id only |
| Export | Writes the records a SOQL query returns to a new CSV | No input file: you pick the fields and filters in the wizard |
| Export All | Same as Export, plus records in the Recycle Bin and archived activities | No input file |
A starter file for upserting contacts, with a custom External ID field and the parent account matched by its own External ID (made-up data):
Legacy_Contact_Id__c,FirstName,LastName,Email,Account_Legacy_Id__c,HasOptedOutOfEmail,Birthdate
C-1001,Ana,Rivera,ana.rivera@example.com,A-501,false,1988-04-12
C-1002,Tom,Novak,tom.novak@example.com,A-502,yes,1990-11-03
Rules worth knowing before you save it:
- Headers don't have to match field names, because you map columns to fields in the wizard. Names close to the field names let Auto-Match Fields to Columns do most of the work.
- Encoding: if your file has accented letters or other non-English characters, turn on Read all CSVs with UTF-8 encoding in Settings. It's off by default.
- Delimiters: comma and tab are both allowed by default. Settings also take other characters, such as
|. - Checkboxes: Data Loader reads yes, y, true, on and 1 as true, and no, n, false, off and 0 as false, in any case.
- Multi-select picklists: put all values in one cell, separated by semicolons, such as
Webinar;Newsletter;Event. - Record IDs can be the case-sensitive 15-character or the case-insensitive 18-character version.
- Long text: a field value in an imported CSV can be at most 32,000 characters.
- Blank cells: with the default SOAP API, blanks are skipped unless you turn on Insert null values. With Bulk API or Bulk API 2.0, that setting isn't available: put
#N/Ain a cell to clear a field.
Date Formats and Time Zones
Dates are where a "successful" load goes wrong. A birthdate of 1988-04-12 can land in Salesforce as April 11 when Data Loader reads the value in one time zone and Salesforce stores it in another.
Formats Data Loader accepts include:
| Format | Example |
|---|---|
yyyy-MM-dd | 2026-03-15 |
yyyy-MM-dd HH:mm:ss | 2026-03-15 09:30:00 |
yyyy-MM-dd'T'HH:mm:ss.SSS'Z' | 2026-03-15T09:30:00.000Z |
yyyy-MM-ddTHH:mm:ss.SSS+/-HHmm (recommended) | 2026-03-15T09:30:00.000-0500 |
MM/dd/yyyy | 03/15/2026 |
dd/MM/yyyy (only with "Use European date format") | 15/03/2026 |
How to keep dates where they belong:
- Include the offset for date-time values (the recommended format above). Then nothing is guessed.
- Set the Time Zone in Settings for values without an offset. Data Loader applies it to every date that has no time zone, using IDs such as
America/Los_AngelesorGMT-8:00. Leave it empty and Data Loader uses your computer's time zone. An invalid value falls back to GMT, and the log notes it. - East of GMT? Salesforce recommends setting your computer to GMT to avoid date adjustments on insert and update.
- Check the range: Salesforce accepts dates from 1700-01-01 to 4000-12-31 (GMT, shifted by your time zone).
Watch the order of day and month, too. With Use European date format off, 03/04/2026 loads as March 4; turn it on, and the same value loads as April 3. Check which convention your file uses before the first load.
After the load, open three records in Salesforce and compare their dates with the CSV. If they're a day off, fix the Time Zone setting and run an update with the same file.
How to Use Salesforce Data Loader to Import Records
The import wizard is the same for Insert, Update, Upsert, Delete and Hard Delete. The example below upserts contacts from the CSV above.

- Choose the operation. Open Data Loader and click Upsert (the buttons are also in the File menu).
- Log in if you haven't yet (see the login section above), then click Next.
- Choose the object and the file. Select Contact, browse to the CSV and click Next. Data Loader shows how many records it read, so you can check the count against your file.


- Pick the match field (upsert only):
Legacy_Contact_Id__cin this example. Details in the next section. - Relate lookups (optional): match the parent account by its External ID.
- Map the fields (see the mapping section below), or pick a map you saved earlier.
- Choose where the result files go and click Finish. Data Loader writes a success file and an error file for every run.
- Review the results. Click View Successes and View Errors when the run ends.

For the other operations, the wizard is the same, minus the steps that don't apply:
- Insert: there's no match step. The CSV needs every required field, and the success file returns the new record IDs.
- Update: Data Loader matches rows by record ID, so the CSV needs the
Idcolumn plus the fields to change. Export the records first to get the IDs. - Delete: the CSV needs only
Id, and you map onlyId. Records go to the Recycle Bin; Hard Delete skips it (see below).
What success looks like: the count of rows in the success file plus the error file equals the rows in your CSV, the error file has only rows you expected to fail, and a spot check of three records in Salesforce shows the right values, dates and parent accounts.
For more ways to get a CSV into Salesforce, including the no-install routes, see our guide to importing CSV into Salesforce.
Upsert With an External ID and Lookup Fields
Upsert needs a column to match on. It's either the Salesforce record Id or an External ID field (a custom field with the External ID attribute). You select it from a dropdown after choosing the file; if the object has no External ID fields, Data Loader uses Id.

The next screen, "Step 2b: (Optional) relate using lookup field", handles parent records. If your file holds the External IDs of a related object (here, Account_Legacy_Id__c for the account), select that External ID next to the relationship. Data Loader then links each contact to the right account without a lookup of account IDs first. If you leave it empty, you can map the related object's Id column in the mapping step instead.

Load the parent object first, with its External ID filled in, then the children. A child row that points to a parent Salesforce can't find comes back in the error file.
Mass Update and Mass Delete Without Losing Data
Salesforce's guide suggests the same safety net for both:
- Export first. Export the records with all fields and keep that file as your backup. Our guide to mass updating Salesforce records covers the other ways to do bulk changes.
- For an update, edit a copy of the export (it already has the
Idcolumn), run Update and review the logs. If something went wrong, run Update again with the backup file to put the old values back. - For a delete, export again with only the
Idcolumn, run Delete (or Hard Delete) and map onlyId.
Delete moves records to the Recycle Bin. Hard Delete skips the Recycle Bin, needs Use Bulk API or Use Bulk API 2.0 turned on in Settings, and can't be undone. For a step-by-step on cleanup, see our guide to mass deleting Salesforce records.
Upload Attachments and Files
Data Loader can also upload attachments and files with the same insert or upsert wizard.
For attachments:
- Select Show all Salesforce objects.
- Pick the Attachment object.
- Give the CSV three required columns:
ParentId(the record the attachment belongs to),Name(the file name, such ascontract.pdf) andBody, the full path to the file on your computer (C:\Export\contract.pdf).
For files in Salesforce Files:
- The path goes into
VersionDataandPathOnClient. - A link goes into
ContentUrlinstead. - With Bulk API turned on, check that Upload Bulk API Batch as Zip File is enabled in Settings before you upload.
Map Fields and Save the Mapping
The mapping step connects each CSV column to a Salesforce field. Click Create or Edit a Map, then Auto-Match Fields to Columns: Data Loader pairs them by how similar the field and column names are. Drag any field it missed onto its column header. For a delete, auto-matching works only on the Id field.

Don't hit OK just yet. First, click Save Mapping and name your map. Data Loader stores it as an .sdl file, and next time you run the same job, it's one click: Choose an Existing Map. No more dragging fields around like it's the first day at a new job. Bonus: the command line reads the same file, so the map you put together in the wizard is already set up for automation down the road. Inside, an .sdl file is just plain text. One pair per line, CSV column to the left of the equals sign, Salesforce field to the right:
Legacy_Contact_Id__c=Legacy_Contact_Id__c
FirstName=FirstName
LastName=LastName
Email=Email
HasOptedOutOfEmail=HasOptedOutOfEmail
Birthdate=Birthdate
"Imported\ from\ legacy\ CRM"=Description
This is the map for the contacts CSV above. The Account_Legacy_Id__c column isn't in it because the wizard handles the parent account in the lookup step (Step 2b). Two details from Salesforce's syntax: put a value in double quotes to load the same constant into every record (here, Description), and put a backslash before every space, in a constant or in a column name (a column called Email Address becomes Email\ Address).
How to Export Data From Salesforce
Export pulls records into a CSV through a SOQL query that Data Loader helps you build.
- Click Export, or Export All to include soft-deleted records in the Recycle Bin and archived activities.
- Log in, choose the object (tick Show all objects if it's missing) and choose or create the target CSV. An existing file is overwritten after you confirm.

- Select the fields and add conditions to filter records. With no conditions, you get every record you have read access to.

- Edit the query text if you need to, click Finish, then View Extraction to open the file.

A few limits trip people up. Parent fields work in the query (Account.Name, with exactly that capitalization), but child subqueries and polymorphic relationship queries don't. Compound fields such as addresses cause errors, so export their parts (BillingCity, BillingPostalCode). Attachments can't be exported this way; use the weekly export in Setup. Exports don't write a success file unless you turn on Generate status files for exports.
Our article on exporting data from Salesforce compares this with the other export routes.
Data Loader Settings Worth Changing
Open Settings > Settings. Data Loader saves your choices in config.properties.


| Setting | Default | When to change it |
|---|---|---|
| Import batch size | 200 (the maximum with SOAP API) | With Bulk API, up to 10,000. With Bulk API 2.0, it isn't used: the API sizes batches itself |
| Use Bulk API / Use Bulk API 2.0 | Off (SOAP API) | Large loads: Salesforce says both are faster than SOAP through parallel processing. Required for Hard Delete |
| Enable serial mode for Bulk API | Off | Records fail with lock errors: serial mode processes one batch at a time, slower but without contention |
| Insert null values | Off | You want blank cells to clear fields on update (SOAP API only) |
| Allow field truncation | On | Turn off if you'd rather have a too-long value fail than be cut |
| Time Zone | Your computer's time zone | Dates without an offset shift by a day |
| Use European date format | Off | Your dates are dd/MM/yyyy |
| Read / Write all CSVs with UTF-8 encoding | Off | Files with non-English characters |
| Export batch size | 500 (200 to 2,000) | Large exports |
| Timeout | 540 seconds | Calls time out on slow orgs |
| Start at row | Empty | A run stopped partway: start from the row after the last one that succeeded |
| Cache Salesforce object and field information across operations | On | You just added or changed fields in Salesforce: restart Data Loader or turn this off, or the new fields may not show up in the lists |
On API usage: loads count against your org's daily API requests, which depend on edition and licenses (Developer Edition gets 15,000 a day). Bulk API and Bulk API 2.0 share an allocation of 15,000 batches per rolling 24 hours.
Read the Success and Error Files
Every operation writes two CSV files to the folder you chose. One file name starts with "success", the other with "error".
- The success file holds the rows that loaded, plus a column with the new record IDs. Keep it: those IDs are what you need for a later update or rollback.
- The error file holds the rejected rows, with a column that says why each one failed.

Open them with View Successes and View Errors at the end of the run, or later from View > View CSV. The viewer shows the first 1,000 rows by default; Open in External Program opens the file in another app, such as Excel.
The fastest way to fix a failed load: copy the error file, fix the values in the rejected rows, remove the error column, and run the same operation with that file. Only the failed rows go through again. If your object has its own field named "success" or "error", rename the CSV column first, because it can confuse the output columns.
For anything the files don't explain, check the log: %TEMP%\sdl.log on Windows, or open $TMPDIR/sdl.log in Terminal on a Mac.
Common Data Loader Errors and How to Fix Them
Most messages below are Salesforce API status codes that Data Loader writes to the error file, next to the rejected row. Three work differently: INVALID_LOGIN and API_DISABLED_FOR_ORG stop you at login, and the last two rows come from Data Loader itself and stop the run before any record loads.
| Error | What it means | Fix |
|---|---|---|
REQUIRED_FIELD_MISSING | A required field has no value | Map the field, or fill the column for every row |
INVALID_FIELD | An invalid field name in an update or upsert | Remap the column; check the field's API name and your field-level access |
DUPLICATE_VALUE | A value in a unique field already exists | Use Upsert on that field, or remove the duplicate rows |
DUPLICATES_DETECTED | A duplicate rule blocked the record | Review the matching record, or change the data |
INVALID_CROSS_REFERENCE_KEY | A record with the given ID doesn't exist | Check the lookup IDs; load parent records first |
MALFORMED_ID | An ID isn't 15 or 18 valid characters | Look for IDs cut short or changed by a spreadsheet |
STRING_TOO_LONG | A value is longer than the field allows | Shorten it. With the SOAP API, Allow field truncation (on by default) cuts such values; with Bulk API it isn't available, so the row fails |
INVALID_TYPE_ON_FIELD_IN_RECORD | A value doesn't fit the field type | Fix dates, numbers and checkbox values |
UNABLE_TO_LOCK_ROW | A deadlock or timeout; with summary fields, the parent records get locked | Turn on serial mode for Bulk API |
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY | No permission to create, update or activate the record | Check the user's object permissions for the operation |
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY | No access to a related record | Check the user's access to the related records |
REQUEST_LIMIT_EXCEEDED | The org hit its concurrent or rate limit | Wait, switch to Bulk API, or run outside business hours |
INVALID_LOGIN | Wrong credentials, or too many logins | Use OAuth, or add the security token to the password |
API_DISABLED_FOR_ORG | API access isn't enabled for the org | Check your edition, and "API Enabled" on the user |
ENTITY_IS_DELETED | The row references a record that has been deleted | Restore the record from the Recycle Bin, or point the row to another record |
FIELD_INTEGRITY_EXCEPTION | An incorrect value was passed to a field | Check picklist values, lookups and formats in that column |
Field mapping is invalid: <CSV column> => <field> | The mapping, often a saved .sdl file, names a field Data Loader can't find on the object for your user: a typo in the API name, a field from another org or object, or a field hidden by field-level security | Fix the API name or remap the column, check that the field exists in this org, and make sure your profile can see it |
| Data Loader doesn't start | No Java 17 or later found | Install JRE 17 or later and set JAVA_HOME to its folder |
Two notes on the hardest ones. UNABLE_TO_LOCK_ROW hits contact or opportunity loads where many rows share one parent account, because summary fields lock the parent records. Bulk API also runs batches in parallel, and if two batches hold child records of the same parent account, they collide: Salesforce warns that parallel processing can cause database contention severe enough to fail the load. Serial mode makes them run one at a time. And a timeout with Bulk API isn't always a total failure. Bulk API puts the rest of a slow file back in the queue and retries it up to 10 times, so some records may already be in. Check the results, then split the file into smaller files and run again.
Automate Data Loader From the Command Line
Data Loader has no scheduler of its own. For automated nightly loads, you run it from the command line with a set of configuration files and let an outside launcher, such as Windows Task Scheduler, start it. Salesforce supports the command-line interface on Windows only. The project's GitHub page shows commands for macOS and Linux, but they aren't officially supported.
Learn the wizard first: the command line uses the same settings and mapping files, and Salesforce lists familiarity with the UI as a prerequisite. Sample files are in C:\Users\{userName}\dataloader\version\samples\.
- Create an encryption key. Open a command prompt in the Data Loader
binfolder and runencrypt.bat -k. The key is saved to%userprofile%\.dataloader\dataLoader.keyunless you give another path. - Encrypt your password (skip this if the process logs in with OAuth):
encrypt.bat -e <password><security token> "<path to key file>". Copy the encrypted string. - Create the mapping file: save it from the wizard (see the mapping section above), so the .sdl file matches what you tested by hand.
- Create process-conf.xml from the sample in
samples\conf. Each<bean>is one process (an insert, an upsert, an export). Setsfdc.endpoint,sfdc.username,sfdc.password(the encrypted value; remove it for OAuth),process.encryptionKeyFile,process.mappingFile,dataAccess.name(the CSV), andprocess.outputSuccessandprocess.outputError. For an upsert,sfdc.externalIdFieldnames the match field. For a sandbox, setsfdc.oauth.environmenttoSandboxandsfdc.endpoint.Sandboxtotest.salesforce.com. A minimal upsert bean, built from Salesforce's sample:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<bean id="contactUpsert" class="com.salesforce.dataloader.process.ProcessRunner" scope="prototype">
<description>Upserts contacts from a CSV file by Legacy_Contact_Id__c.</description>
<property name="name" value="contactUpsert"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.endpoint" value="https://login.salesforce.com"/>
<entry key="sfdc.username" value="admin@example.com"/>
<entry key="sfdc.password" value="PASTE_ENCRYPTED_PASSWORD"/>
<entry key="process.encryptionKeyFile" value="C:\Users\admin\.dataloader\dataLoader.key"/>
<entry key="sfdc.entity" value="Contact"/>
<entry key="process.operation" value="upsert"/>
<entry key="sfdc.externalIdField" value="Legacy_Contact_Id__c"/>
<entry key="process.mappingFile" value="C:\DLTest\contactMap.sdl"/>
<entry key="dataAccess.type" value="csvRead"/>
<entry key="dataAccess.name" value="C:\DLTest\contacts.csv"/>
<entry key="process.outputSuccess" value="C:\DLTest\logs\contacts_success.csv"/>
<entry key="process.outputError" value="C:\DLTest\logs\contacts_error.csv"/>
</map>
</property>
</bean>
</beans>
- Run the process:
process.bat "C:\DLTest\Command Line\Config" contactUpsert, where the first argument is the folder withprocess-conf.xmland the second is the bean's name.
Then schedule process.bat with its two arguments in Windows Task Scheduler. Since v62, Data Loader returns exit codes your script can check: 0 for success, 1 for a client-side error, 2 for a server-side error, 3 for an error running the operation, and 4 when the run worked but rows failed (only with process.batchMode.exitWithErrorOnFailedRows=true). If the command line stops logging in after an upgrade, encrypt the password again.
On a Mac, batch mode works only unofficially, through the commands in the project's README: ./dataloader_console -k run.mode=encrypt creates the key (by default in ~/.dataloader/dataloader.key), ./dataloader_console run.mode=encrypt -e <password> encrypts the password, and ./dataloader_console <config folder> contactUpsert run.mode=batch runs the process. A cron job can call that last command on a schedule. Salesforce doesn't support this setup, so test it after every Data Loader upgrade.
Scripts and a Windows machine that stays on are fine for one nightly job. When the CSV lands in cloud storage, several objects load in order, or the person who owns the schedule doesn't write batch files, a cloud tool is less to maintain. Skyvia's Salesforce data loader runs the same insert, update, upsert and delete operations from the browser: it takes CSV files from your computer or from storage such as SFTP, Amazon S3, Google Drive or SharePoint, upserts by External ID through Bulk API v1 or v2, and runs on a schedule, as often as hourly on the Standard plan or every minute on Professional. Failed records can be retried with a replay instead of rerunning the whole import. For a wider comparison, see our list of Salesforce Data Loader alternatives.
FAQ for Salesforce Data Loader
Can I use Data Loader on a Mac with Apple Silicon?
Yes. Salesforce lists Apple chips as supported for v67, alongside Intel, on macOS 13 to 15. Pick the JRE build for your chip (ARM 64-bit for M-series Macs) before you run install.command. Batch mode from Terminal works on a Mac only unofficially; the supported command line is on Windows.
Does Data Loader work with sandboxes?
Yes. In the login step, select OAuth and choose Sandbox as the environment. If your org uses My Domain, set the sandbox URL in Settings, such as https://MyDomainName--SandboxName.sandbox.my.salesforce.com. Scheduled command-line runs need both sandbox parameters in process-conf.xml, as shown in the automation section.
Is Salesforce Data Loader free?
Salesforce doesn’t list a price for it: you download it from the Data Loader page and install it yourself. What you need is an edition with API access (Enterprise, Performance, Unlimited or Developer) and a user with the API Enabled permission. Every load counts against your org’s daily API requests.
Is Salesforce Data Loader the same as dataloader.io?
No. Data Loader is Salesforce’s desktop app: you install it on Windows or macOS, it needs Java 17 or later, and it has no scheduler of its own. dataloader.io is a separate, browser-based tool from MuleSoft, a Salesforce company. There’s nothing to install, it has a free plan of 10,000 records a month, and it can schedule imports and exports on every plan. Our dataloader.io review compares the two in detail.
Want the same loads without installing Java, writing batch files or keeping a PC on overnight? Sign up for Skyvia and build your first Salesforce import from a CSV in the browser: Data Integration has a free plan with 10,000 records a month, no credit card needed.