How to Use Salesforce Data Loader: Step-by-Step Tutorial (2026)

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 whenUse the Data Import Wizard when
You load 50,000 records or moreYou load fewer than 50,000 records
The object isn't supported by the wizardThe object is supported by the wizard
You reuse complex field mappings regularlyThe object has fewer than 50 fields and the mapping is simple
You want scheduled loads, such as nightly importsYou want the wizard to catch duplicates by account name and site, or by contact or lead email
You export data for backupYou 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_HOME pointing 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
OperationPermission the user needs
InsertCreate
UpdateEdit
UpsertCreate or Edit
Delete, Hard DeleteDelete (Hard Delete also needs "Bulk API Hard Delete")
Mass delete of many recordsModify All Data
Export, Export AllRead

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

Data Loader v67 installer for Windows checking for Java JRE 17 in the command window
  1. Right-click the .zip and select Extract All.
  2. In the extracted Data Loader folder, run install.bat.
  3. If Windows SmartScreen shows a warning, click More info, then Run anyway.
  4. Answer the prompts in the command window, including the install folder (the default is \Users\<username>\dataloader\<version>).
  5. Start Data Loader from the desktop icon, the Start menu or dataloader.bat in the install folder.

Install on macOS

  1. Extract the .zip into a folder.
  2. Double-click install.command.
  3. 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.
macOS blocks install.command the first time: the "install.command" Not Opened dialog
macOS Privacy & Security settings with the Open Anyway button next to the blocked install.command
macOS confirmation dialog with the Open Anyway button for install.command
  1. Answer the prompts. The default folder is /Users/<username>/dataloader/<version>.
Data Loader v67 installer in the macOS Terminal asking for the installation folder and shortcuts
  1. Start it from Applications or with dataloader.app in 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

Data Loader Step 1: Log In with OAuth selected, the Production environment and the Log in button

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:

  1. Pick an operation (Insert, Update, Export and so on). Data Loader asks you to log in at Step 1: Log In.
  2. Select OAuth and choose the environment: Production or Sandbox.
  3. Click Log in, finish the login in the browser window that opens, and allow access.
  4. 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:

OperationWhat it doesColumns the CSV needs
InsertCreates new recordsThe fields you're filling, including every required field
UpdateChanges existing records, matched by record IDId plus the fields to change
UpsertUpdates a matching record or inserts a new oneThe match column (record Id or an External ID field) plus the fields
DeleteMoves records to the Recycle BinId only
Hard DeleteDeletes records without the Recycle Bin (Bulk API only)Id only
ExportWrites the records a SOQL query returns to a new CSVNo input file: you pick the fields and filters in the wizard
Export AllSame as Export, plus records in the Recycle Bin and archived activitiesNo 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/A in 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:

FormatExample
yyyy-MM-dd2026-03-15
yyyy-MM-dd HH:mm:ss2026-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/yyyy03/15/2026
dd/MM/yyyy (only with "Use European date format")15/03/2026

How to keep dates where they belong:

  1. Include the offset for date-time values (the recommended format above). Then nothing is guessed.
  2. 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_Angeles or GMT-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.
  3. East of GMT? Salesforce recommends setting your computer to GMT to avoid date adjustments on insert and update.
  4. 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.

Salesforce Data Loader 67.0.0 main window with the Upsert button selected
  1. Choose the operation. Open Data Loader and click Upsert (the buttons are also in the File menu).
  2. Log in if you haven't yet (see the login section above), then click Next.
  3. 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.
Data Loader upsert, Step 2: Select Salesforce object, with Contact selected
Data Loader Data Selection message: the CSV file has 100 rows, SOAP API version 67.0
  1. Pick the match field (upsert only): Legacy_Contact_Id__c in this example. Details in the next section.
  2. Relate lookups (optional): match the parent account by its External ID.
  3. Map the fields (see the mapping section below), or pick a map you saved earlier.
  4. Choose where the result files go and click Finish. Data Loader writes a success file and an error file for every run.
  5. Review the results. Click View Successes and View Errors when the run ends.
Data Loader Operation Finished dialog: 97 successful upserts and 3 errors, with View Successes and View Errors buttons

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 Id column plus the fields to change. Export the records first to get the IDs.
  • Delete: the CSV needs only Id, and you map only Id. 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.

Data Loader upsert, Step 2a: Legacy_Contact_Id__c selected as the External ID field for matching Contact records

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.

Data Loader upsert, Step 2b: relate Contact to Account and other objects using a lookup field

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:

  1. 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.
  2. For an update, edit a copy of the export (it already has the Id column), run Update and review the logs. If something went wrong, run Update again with the backup file to put the old values back.
  3. For a delete, export again with only the Id column, run Delete (or Hard Delete) and map only Id.

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 as contract.pdf) and Body, the full path to the file on your computer (C:\Export\contract.pdf).

For files in Salesforce Files:

  • The path goes into VersionData and PathOnClient.
  • A link goes into ContentUrl instead.
  • 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.

Data Loader upsert, Step 3: Mapping, with CSV column headers matched to Contact fields

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.

  1. Click Export, or Export All to include soft-deleted records in the Recycle Bin and archived activities.
  2. 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.
Data Loader Export, Step 2: select the Salesforce object and the target CSV file
  1. Select the fields and add conditions to filter records. With no conditions, you get every record you have read access to.
Data Loader Export, Step 3: Edit your Query, with Account fields selected and the generated SOQL query
  1. Edit the query text if you need to, click Finish, then View Extraction to open the file.
Salesforce Data Loader export completed with 14 successful extractions and 0 errors

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.

Data Loader Settings: SOAP, Bulk API or Bulk API 2.0, Insert null values, Allow field truncation, timeout and batch size
Data Loader Settings: UTF-8 encoding, European date format, CSV delimiter options and the Time Zone field
SettingDefaultWhen to change it
Import batch size200 (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.0Off (SOAP API)Large loads: Salesforce says both are faster than SOAP through parallel processing. Required for Hard Delete
Enable serial mode for Bulk APIOffRecords fail with lock errors: serial mode processes one batch at a time, slower but without contention
Insert null valuesOffYou want blank cells to clear fields on update (SOAP API only)
Allow field truncationOnTurn off if you'd rather have a too-long value fail than be cut
Time ZoneYour computer's time zoneDates without an offset shift by a day
Use European date formatOffYour dates are dd/MM/yyyy
Read / Write all CSVs with UTF-8 encodingOffFiles with non-English characters
Export batch size500 (200 to 2,000)Large exports
Timeout540 secondsCalls time out on slow orgs
Start at rowEmptyA run stopped partway: start from the row after the last one that succeeded
Cache Salesforce object and field information across operationsOnYou 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.
Salesforce Data Loader CSV Viewer showing 14 exported Account records with Account_Legacy_Id__c values

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.

ErrorWhat it meansFix
REQUIRED_FIELD_MISSINGA required field has no valueMap the field, or fill the column for every row
INVALID_FIELDAn invalid field name in an update or upsertRemap the column; check the field's API name and your field-level access
DUPLICATE_VALUEA value in a unique field already existsUse Upsert on that field, or remove the duplicate rows
DUPLICATES_DETECTEDA duplicate rule blocked the recordReview the matching record, or change the data
INVALID_CROSS_REFERENCE_KEYA record with the given ID doesn't existCheck the lookup IDs; load parent records first
MALFORMED_IDAn ID isn't 15 or 18 valid charactersLook for IDs cut short or changed by a spreadsheet
STRING_TOO_LONGA value is longer than the field allowsShorten 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_RECORDA value doesn't fit the field typeFix dates, numbers and checkbox values
UNABLE_TO_LOCK_ROWA deadlock or timeout; with summary fields, the parent records get lockedTurn on serial mode for Bulk API
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITYNo permission to create, update or activate the recordCheck the user's object permissions for the operation
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITYNo access to a related recordCheck the user's access to the related records
REQUEST_LIMIT_EXCEEDEDThe org hit its concurrent or rate limitWait, switch to Bulk API, or run outside business hours
INVALID_LOGINWrong credentials, or too many loginsUse OAuth, or add the security token to the password
API_DISABLED_FOR_ORGAPI access isn't enabled for the orgCheck your edition, and "API Enabled" on the user
ENTITY_IS_DELETEDThe row references a record that has been deletedRestore the record from the Recycle Bin, or point the row to another record
FIELD_INTEGRITY_EXCEPTIONAn incorrect value was passed to a fieldCheck 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 securityFix 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 startNo Java 17 or later foundInstall 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\.

  1. Create an encryption key. Open a command prompt in the Data Loader bin folder and run encrypt.bat -k. The key is saved to %userprofile%\.dataloader\dataLoader.key unless you give another path.
  2. 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.
  3. Create the mapping file: save it from the wizard (see the mapping section above), so the .sdl file matches what you tested by hand.
  4. Create process-conf.xml from the sample in samples\conf. Each <bean> is one process (an insert, an upsert, an export). Set sfdc.endpoint, sfdc.username, sfdc.password (the encrypted value; remove it for OAuth), process.encryptionKeyFile, process.mappingFile, dataAccess.name (the CSV), and process.outputSuccess and process.outputError. For an upsert, sfdc.externalIdField names the match field. For a sandbox, set sfdc.oauth.environment to Sandbox and sfdc.endpoint.Sandbox to test.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>
  1. Run the process: process.bat "C:\DLTest\Command Line\Config" contactUpsert, where the first argument is the folder with process-conf.xml and 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

Loader image

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.

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.

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.

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.

Share

Liudmyla Mykolenko

A dedicated technical writer, Liudmyla brings extensive experience in creating and managing diverse learning materials. Passionate about user-centered documentation, she thrives on enhancing user experiences through clear, engaging, and accessible content. With a keen analytical mindset and a collaborative approach, Liudmyla excels in bridging information gaps and simplifying complex concepts.

One platform for all your data work

One platform for all your data work

Integration, automation, live data access, and backup. No code, 200+ connectors.

Start free