Sub topic 6
Installing Data Loader and Logging In
This chapter assumes you can create and edit CSV files, know what Salesforce objects, records, and fields are, and have a sandbox or Developer Edition org to practice in. You also need the "API Enabled" permission on your profile or permission set. Data Loader talks to Salesforce through its APIs, so without that permission login fails.
What Data Loader is
Data Loader is a client application. It runs on your computer, not in the browser, and it sends your CSV rows to Salesforce through the SOAP API or the Bulk API. The Data Import Wizard runs entirely inside Salesforce. The difference matters for setup: Data Loader needs installation, a Java runtime (in current versions it is bundled with the installer), and a login that you configure yourself.
Installing
- In Salesforce, open Setup and search for "Data Loader" in Quick Find. Open the page under Data Management.
- Download the installer for your operating system (Windows or macOS). Some versions are also published through Salesforce's documentation and release pages, so check which version your org's administrator wants you to use.
- Run the installer and follow the prompts. On Windows, a shortcut is added to the desktop or Start menu. On macOS, the application is placed in your Applications folder.
- Start Data Loader. The main window lists the operations: Insert, Update, Upsert, Delete, Hard Delete, Export, and Export All.
If the installer is blocked on a managed computer, ask your IT team. Installing software often needs administrator rights on the machine.
Choosing a login method
When you pick an operation, Data Loader asks you to log in. You can choose between two methods.
| Method | How it works | Best for |
|---|---|---|
| OAuth | A browser window opens, you sign in on a Salesforce page, and Data Loader receives a token. | Most interactive use. It supports multi-factor authentication and does not store your password. |
| Password Authentication | You enter your username and a password combined with your security token. | Older setups and some scripted use, where your org still allows it. |
OAuth is the usual choice. Under OAuth you also pick the environment: Production for a live org or Developer Edition, and Sandbox for a sandbox. Choosing the wrong one is the most common reason a login fails.
Logging in with a password
If you use Password Authentication, the password field takes your password followed directly by your security token, with no space between them. For example, if your password is MyPass1 and your token is AbC123, you enter MyPass1AbC123.
You need the token only when you connect from an IP address outside your org's trusted ranges. If you do not have a token, reset it from your personal settings. Resetting a token sends a new one by email and invalidates the old one, so any other tool using the old token will stop working.
You can skip the token if an administrator has added your network to the trusted IP ranges or if the org uses a login IP range on your profile.
Settings to check after logging in
Open Settings from the Data Loader menu. Several values affect every operation you run later.
- Server host: the login URL. The default is for production. Sandbox orgs use
https://test.salesforce.com. If you use a My Domain, use your own domain URL. - Batch size: the number of records sent per request. Leave the default until you have a reason to change it. A later chapter covers this.
- Use Bulk API: a checkbox that switches the loader from the SOAP API to the Bulk API, which suits large volumes.
- Timezone: controls how date and time values in your CSV are interpreted. Set it to match your data.
Common login errors
- INVALID_LOGIN: the username, password, or token is wrong, or you are pointing at the wrong environment. Check that a sandbox username ends with the sandbox name, such as
.dev1. - APIDISABLEDFOR_ORG or API access errors: your user lacks the API Enabled permission, or the edition does not include API access.
- Browser opens but Data Loader never receives the token: a browser extension, firewall, or proxy may be blocking the local redirect. Try another browser or ask IT to allow it.
- Login works, but you cannot see an object: you are logged in, but your profile lacks object permissions. Data Loader only shows what your user can access.
Exercise
You are logged in to a sandbox from Data Loader using Password Authentication. Your password is Blue42 and your security token is Zx9Qk1. What do you enter in the password field, and which server host should the settings use?
Show answer
Enter Blue42Zx9Qk1, the password followed directly by the token with no space. The server host should be https://test.salesforce.com, because the target is a sandbox.