• Stars
    star
    440
  • Rank 99,050 (Top 2 %)
  • Language
    Java
  • License
    BSD 3-Clause "New...
  • Created about 14 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Salesforce Data Loader

Prerequisites

Latest release of Data Loader requires JRE 11 or later.

Installing Data Loader

Salesforce officially supports Data Loader for Windows and macOS. All other operating systems are unsupported. The list of supported macOS and Windows versions and CPU architecture for a released version of Data Loader is provided in the Release Notes for that release.

Follow the installation instructions for macOS and Windows.

Installing on Linux: Extract contents of Data Loader zip file, rename install.command as install.sh, and run the following command:

./install.sh

Running Data Loader in GUI mode

For running Data Loader on macOS or Windows, follow the instructions.

For running Data Loader on Linux, type the following command in a command shell:

./dataloader.sh

OR

java -jar dataloader-x.y.z.jar

Consult the documentation for the details of how to configure and use Data Loader.

Running Data Loader in Batch mode

Batch mode is officially supported only on Windows. To run Data Loader in Batch mode on Windows, see Batch mode for Windows.

Execute the following command on Mac (Replace dataloader_console with dataloader.sh on Linux):

./dataloader_console <config dir containing process-conf.xml and config.properties files> <process name> run.mode=batch

Alternately execute one of the following commands:

java -jar dataloader-x.y.z.jar <config dir containing process-conf.xml and config.properties files> <process name> run.mode=batch

OR

java -jar dataloader-x.y.z.jar salesforce.config.dir=<config dir containing process-conf.xml and config.properties files> process.name=<process name> run.mode=batch 

Commands to create an encryption key file, encrypt a password, or decrypt a password

See Batch mode for Windows for the detailed steps to create an encryption key file, encrypt a password, or decrypt a password on Windows.

Batch mode requires specifying an encrypted password in process-conf.xml, config.properties, or as a command line argument. The first step in encrypting a password is to create an encryption key file on Mac or Linux.

Execute the following command to generate an encryption key file on Mac (Replace dataloader_console with dataloader.sh on Linux):

./dataloader_console -k [<encryption key file>]  run.mode=encrypt 

OR

java -jar dataloader-x.y.z.jar -k [<encryption key file>]  run.mode=encrypt 

Execute the following command to encrypt a password on Mac (Replace dataloader_console with dataloader.sh on Linux):

./dataloader_console -e <password in plain text> [<encryption key file>] run.mode=encrypt 

OR

java -jar dataloader-x.y.z.jar -e <password in plain text> [<encryption key file>] run.mode=encrypt

Execute the following command to decrypt a password on Mac (Replace dataloader_console with dataloader.sh on Linux):

./dataloader_console -d <encrypted password> [<encryption key file>] run.mode=encrypt 

OR

java -jar dataloader-x.y.z.jar -d <encrypted password> [<encryption key file>] run.mode=encrypt

NOTE: these commands use the default encryption key file ${HOME}/.dataloader/dataloader.key if an encryption key file is not specified.

Reporting an issue

Collect the following information before reaching out to Salesforce Support or reporting an issue on github:

  • Data Loader version, desktop operating system type and version, operation being performed, and screenshots of the issue.
  • Config files: config.properties, log4j2.properties or log-conf.xml, process-conf.xml.
  • log file:
    • Set the log level to “debug” in Advanced Config dialog (v58 and later). If the log level is not visible in Advanced Settings dialog (v57 or earlier) or if the log level is not changeable in Advanced Settings dialog, set "root" log level to "debug" in log-conf.xml.
    • Rerun data loader to reproduce the issue.
    • Send the log output located in the file shown by “Logging output file” info in the Advanced Settings dialog of their data loader. Logging output file info is shown in the Advanced Settings dialog as of v58.
    • If you are using v58 or earlier, the default location of the debug log is <tempdir>/sdl.log
    • The default tempdir is %USER%\AppData\Local\Temp on Windows
    • The default tempdir is ${TMPDIR} on macOS
  • Provide a sample csv file containing as few as possible columns and rows to reproduce the issue.
  • Provide the following information about your org (it is available in the log file if data loader version > 58.0.0, the log level is set to debug, and the user logs in):
    • Org id: Setup >> Company Information >> value of Salesforce organization id field
    • instance: Setup >> Company Information >> value of Instance field
    • User id: follow the instructions in this article.

NOTE: Remove all personal, business-specific, and all other sensitive information from the files you share (e.g. config files, log files, screenshots, csv files, and others) before reporting an issue, especially on a public forum such as github.

Building Data Loader

Developers need to use JDK 11 or later to build Data Loader. For example, developers can use Zulu OpenJDK to build Data Loader.

git clone [email protected]:forcedotcom/dataloader.git
cd dataloader
git submodule init
git submodule update
mvn clean package -DskipTests 
    or
./dlbuilder.sh

dataloader_v<x.y.z>.zip will be created in the root directory of the local git clone.

Debugging Data Loader

To run data loader for debugging with an IDE

java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005  dataloader-x.y.z.jar

Testing Data Loader

See the testing wiki

Resources

For more information, see the Salesforce Data Loader Guide.

Questions can be directed to the open source forum.

Dependencies and plugins

Update SWT by running python3 <root of the git clone>/updateSWT.py <root of the git clone>. Requires python 3.9 or later.

All other dependencies and plugins are downloaded by maven from the central maven repo. Run mvn versions:display-dependency-updates to see which dependencies need an update. It will list all dependencies whose specified version in pom.xml needs an update. Run mvn versions:use-latest-releases to update these dependencies. Run mvn versions:display-plugin-updates again to check which plugins still need an update and update their versions manually.

More Repositories

1

postman-salesforce-apis

Salesforce API Postman Collection
1,071
star
2

salesforcedx-vscode

Salesforce Extensions for VS Code
TypeScript
949
star
3

aura

This project is archived, please see the readme for additional resources.
JavaScript
676
star
4

scrollerjs

A JavaScript library that helps you build performant UI components for the web.
JavaScript
637
star
5

phoenix

Java
560
star
6

SalesforceMobileSDK-iOS

iOS SDK for Salesforce
Objective-C
520
star
7

cli

Salesforce CLI
477
star
8

SFDX-Data-Move-Utility

SFDMU is a cutting-edge Salesforce data migration tool for seamless org population from other orgs or CSV files. It handles all CRUD operations on multiple related objects in one go.
TypeScript
405
star
9

SalesforceMobileSDK-Android

Android SDK for Salesforce
Java
313
star
10

wsc

Java
266
star
11

mobile-ui-elements

Custom elements to build beautiful mobile applications on salesforce.
JavaScript
247
star
12

idecore

The core plug-ins for the Force.com IDE
Java
238
star
13

sfdx-scanner

HTML
215
star
14

EMP-Connector

A simplified cometd connector for Enterprise Messaging Platform
Java
185
star
15

CustomMetadataLoader

Tool to help users bulk create and update custom metadata records in salesforce.com from a CSV file.
Apex
161
star
16

b2b-commerce-on-lightning-quickstart

Shell
157
star
17

sfdx-core

TypeScript
151
star
18

force-dot-com-esapi

Enterprise Security API for the Apex language on the Force.com platform.
Apex
129
star
19

Analytics-Cloud-Dataset-Utils

Friendly utility to load your on-prem data, whether large or small, to Einstein Analytics Datasets, with useful features such as autoloading, dataflow control and dataset inspection.
JavaScript
129
star
20

SalesforceCanvasFrameworkSDK

Java
122
star
21

LightningTestingService

JavaScript
122
star
22

sfdx-simple

Apex
116
star
23

quiz-host-app

Multiplayer quiz app built on Salesforce technology (host app)
Apex
108
star
24

SalesforcePy

An absurdly simple package for making Salesforce Rest API calls.
Python
106
star
25

dependencies-cli

SFDX plugin for metadata dependencies tooling API
CSS
101
star
26

sfdx-travisci

Apex
98
star
27

Data-Migration-Tool

Java
98
star
28

ConnectApiHelper

Helper class that makes it easier to post Chatter @-mentions, rich text, and inline images with Apex code.
Apex
93
star
29

RecordViewer

Record Viewer - UI API + Node.js Sample App
JavaScript
86
star
30

salesforcedx-templates

Salesforce Templates Node Library
TypeScript
79
star
31

SFDX-Data-Move-Utility-Desktop-App

This repository contains the special Desktop GUI Application, that will help you to prepare and execute data migration packages using the SFDMU Plugin.
TypeScript
77
star
32

sfdx-plugin-generate

TypeScript
73
star
33

salesforcedx-docker

The official Dockerfile for Salesforce DX
JavaScript
72
star
34

ApexUnit

ApexUnit is a powerful continuous integration tool for the Force.com platform
Java
71
star
35

SalesforceMobileSDK-Shared

JavaScript
68
star
36

cinnamon

Cinnamon is a Force.com app that enables you to build and run Selenium tests to validate custom UI pages with Visualforce/Javascript in your Salesforce org.
Apex
67
star
37

commerce-on-lightning-components

Commerce on Lightning out-of-the-box component source code for reference and educational purposes
JavaScript
67
star
38

SalesforceMobileSDK-Samples

Samples for working with the Salesforce Mobile SDK
C
65
star
39

commerce-on-lightning

An SFDX Plugin to setup a B2C or B2B Store
TypeScript
64
star
40

WSDL2Apex

Apex
62
star
41

salesforce-alm

A read-only snapshot of the salesforce-alm plugin known as the "toolbelt".
TypeScript
61
star
42

devops-center-feedback

61
star
43

SlidingCarousel

A tool used to create the onboarding experience for Salesforce1's hybrid application on iOS.
Objective-C
59
star
44

LightningFlowComponents

⚡ A collection of sample Lightning Components that can be used to enhance Salesforce Lightning Flow.
JavaScript
58
star
45

source-deploy-retrieve

JavaScript toolkit for working with Salesforce metadata.
TypeScript
55
star
46

PerlKoans

Perl
51
star
47

go-soql

Golang tag library to generate SOQL queries
Go
51
star
48

java-sdk

NO LONGER MAINTAINED: Database.com SDK for Java
Java
47
star
49

SalesforceMobileSDK-Templates

Kotlin
46
star
50

SalesforceMobileSDK-ReactNative

Objective-C
46
star
51

user-access-visualization

Apex
46
star
52

AuraEnabledScanner

JavaScript
45
star
53

SalesforceMobileSDK-CordovaPlugin

Cordova plugin for the Salesforce Mobile SDK
Java
45
star
54

sfdx-analytics

Einstein Analytics sample application templates
JavaScript
44
star
55

sfdx-jenkins-org

Jenkins example with org development
Apex
44
star
56

cli-packages

TypeScript
43
star
57

lwc-dev-server-feedback

LWC Local Development
43
star
58

LWC-Mobile-Samples

Mobile sample applications and code for LWC development
JavaScript
42
star
59

isvte-sfdx-plugin

TypeScript
42
star
60

SalesforceCanvasJavascriptSDK

A JavaScript SDK used to integrate applications with the Force.com Canvas framework
JavaScript
42
star
61

OrgMonitor

JavaScript
41
star
62

Salesforce1-Dev-Guide-Setup-Package

40
star
63

sfdx-bitbucket-package

Bitbucket Pipelines examples with Package development
Apex
39
star
64

project-force

Reference implementation app for Feature Management.
Apex
37
star
65

schemas

Salesforce DX Schemas
JavaScript
36
star
66

Einstein-GPT-for-Developers

Einstein GPT For Developers
36
star
67

salesforcedx-actions

(Unofficial) GitHub Actions for SalesforceDX using the Salesforce CLI
Shell
34
star
68

aura-note

JavaScript
34
star
69

lightning-language-server

LWC and Aura Language Servers - shipped as part of the Salesforce VSCode Extensions
JavaScript
33
star
70

distributions

Low-level primitives for collapsed Gibbs sampling in python and C++
C++
33
star
71

apex-tmLanguage

Salesforce Apex Language syntax grammar used for colorization
TypeScript
32
star
72

Salesforce-CDP-jdbc

JDBC driver to connect to Salesforce CDP.
Java
32
star
73

sfdx-dev-packages

TypeScript
30
star
74

sfdx-gitlab-org

GitLab Pipelines example with org development
Apex
30
star
75

code-builder-feedback

This repository is used to collect feedback for the Code Builder beta.
29
star
76

eslint-plugin-aura

Salesforce Lightning (Aura) specific linting rules for ESLint
JavaScript
27
star
77

git2gus

A Github application to keep issues in sync with Agile Accelerator
JavaScript
27
star
78

salesforcedx-vscode-slds

TypeScript
26
star
79

sfdx-bitbucket-org

Bitbucket Pipelines examples with org development
Apex
26
star
80

lwc-builder

VSCode Extension to kickstart Lightning Web Component development.
TypeScript
26
star
81

sfdx-circleci

Apex
24
star
82

ServiceSDK-iOS

Salesforce Embedded Service SDK for iOS
23
star
83

dx-empty

Template repository representing the empty file system structure for a new Salesforce DX project.
JavaScript
23
star
84

SalesforceMobileSDK-Package

JavaScript
22
star
85

soql-tooling

SOQL Language Tooling features including the Language Server and Query Builder UI.
TypeScript
22
star
86

RecordViewerNative

Record Viewer Native - UI API + React Native Sample App
JavaScript
21
star
87

salesforce-deskcom-api

A lightweight, flexible library for desk.com APIv2, it supports basic auth and OAuth as authentication methods and is written to be auto discoverable.
Ruby
21
star
88

sfdx-gitlab-package

Apex
20
star
89

lwc-builder-ui

JavaScript
20
star
90

almond

Native Force.com Learning Management Application
Apex
20
star
91

SiteCrawler

This is a Java library which can be used to crawl the content of some of web properties (www.salesforce.com, blogs.salesforce.com for example). It supports dynamic scaling (depending on available machine power (CPU, RAM) and network capacity) out of the box. It also has a Plugin structure, which allows others to write code (plugins) that act on the crawled pages.
Java
20
star
92

devops-center-roadmap

19
star
93

lwc-dev-mobile

TypeScript
19
star
94

sfdx-jenkins-package

Apex
19
star
95

source-tracking

JavaScript library for tracking local and remote Salesforce metadata changes.
TypeScript
19
star
96

df17-ant-to-sfdx

Metadata repository demonstrating move from Ant Migration Tools to the Salesforce CLI
Apex
19
star
97

salesforce-datacom-api-java-client

Easy-to-use and efficient Java client library for accessing Data.com APIs using JSON[XML] and OAuth 2.0
Java
19
star
98

commerce-extensibility

Apex
18
star
99

codey-midnight

Dark theme for VS Code configured for accessibility and Salesforce development
18
star
100

salesforcedx-apex

Salesforce Apex Node Library
TypeScript
18
star