Newer Version Available
Data Loader Process Configuration Parameters
| Available in: Salesforce Classic |
| Available in: Enterprise, Performance, Unlimited, Developer, and Database.com Editions |
When running Data Loader from the command line, you can specify the following configuration parameters in the process-conf.xml file. In some cases, the parameter is also represented in the graphical user interface at .
| Parameter Name | Data Type | Equivalent Option in Settings Dialog | Description |
|---|---|---|---|
| dataAccess.readUTF8 | boolean | Read all CSVs with UTF-8 encoding |
Select this option to force files to open in UTF-8 encoding,
even if they were saved in a different format. Sample value: true |
| dataAccess.writeUTF8 | boolean | Write all CSVs with UTF-8 encoding |
Select this option to force files to be written in UTF-8
encoding. Sample value: true |
| dataAccess.name | string | Not applicable (N/A) | Name of the data source to use, such as a CSV file name. For
databases, use the name of the database configuration in
database-conf.xml. Sample value: c:\dataloader\data\extractLead.csv |
| dataAccess.readBatchSize | integer | N/A | Number of records read from the database at a time. The maximum
value is 200. Sample value: 50 |
| dataAccess.type | string | N/A | Standard or custom data source type. Standard types are
csvWriter, csvRead,
databaseWrite, and
databaseRead. Sample value: csvWrite |
| dataAccess.writeBatchSize | integer | N/A | Number of records written to the database at a time. The
maximum value is 2,000. Note the implication for a large parameter value: if an
error occurs, all records in the batch are rolled back. In contrast, if the value is
set to 1, each record is processed individually (not in batch) and errors are
specific to a given record. We recommend setting the value to 1 when you need to
diagnose problems with writing to a database. Sample value: 500 |
| process.enableExtractStatusOutput | boolean | Generate status files for exports |
Select this option to generate success and error files
when exporting data. Sample value: true |
| process.enableLastRunOutput | boolean | N/A | When running Data Loader in batch mode, you can
disable the generation of output files such as sendAccountsFile_lastRun.properties. Files of this type are saved by
default to the conf directory. To stop the writing of these
files, set this option to false. Alternatively, you can change the location of the directory where these files are saved, using process.lastRunOutputDirectory. Sample value: true |
| process.encryptionKeyFile | string (file name) | N/A | Name of the file that contains the encryption key. See Encrypt from the Command Line. Sample value: c:\dataloader\conf\my.key |
| process.initialLastRunDate | date | N/A | The initial setting for the
process.lastRunDate parameter, which can be used in a SQL
string and is automatically updated when a process has run successfully. For an
explanation of the date format syntax, see Date Formats. Format must be yyyy-MM-ddTHH:mm:ss.SSS+/-HHmm. For example: 2006-04-13T13:50:32.423-0700 |
| process.lastRunOutputDirectory | string (directory) | N/A | When running Data Loader in batch mode, you can change
the location where output files such as sendAccountsFile_lastRun.properties are written. Files of this type are
saved by default to the \conf directory.
To change the location, change the value of this option to the full path where the
output files should be written. Alternatively, you can stop the files from being written, using process.enableLastRunOutput. |
| process.loadRowToStartAt | number | Start at row |
If your last operation failed, you can use this setting to
begin where the last successful operation finished. Sample value: 1008 |
| process.mappingFile | string (file name) | N/A | Name of the field mapping file to use. See Map Columns. Sample value: c:\dataloader\conf\accountExtractMap.sdl |
| process.operation | string | N/A | The operation to perform. See Data Loader Command-Line Operations. Sample value: extract |
| process.statusOutputDirectory | string (directory) | N/A | The directory where “success” and
“error” output files are saved. The file names are automatically
generated for each operation unless you specify otherwise in
process-conf.xml. Sample value: c:\dataloader\status |
| process.outputError | string (file name) | N/A | The name of the CSV file that stores error data from the last
operation. Sample value: c:\dataloader\status\myProcessErrors.csv |
| process.outputSuccess | string (file name) | N/A | The name of the CSV file that stores success data from the last
operation. See also process.enableExtractStatusOutput. Sample value: c:\dataloader\status\myProcessSuccesses.csv |
| process.useEuropeanDates | boolean | Use European date format |
Select this option to support the date formats
dd/MM/yyyy and dd/MM/yyyy
HH:mm:ss. Sample value: true |
| sfdc.assignmentRule | string | Assignment rule |
Specify the ID of the assignment rule to use for inserts,
updates, and upserts. This option applies to inserts, updates, and upserts on cases and
leads. It also applies to updates on accounts if your organization has territory
assignment rules on accounts. The assignment rule overrides Owner
values in your CSV file. Sample value: 03Mc00000026J7w |
| sfdc.bulkApiCheckStatusInterval | integer | N/A | The number of milliseconds to wait between successive checks to
determine if the asynchronous Bulk API
operation is complete or how many records have been processed. See also sfdc.useBulkApi. We
recommend a value of 5000. Sample value: 5000 |
| sfdc.bulkApiSerialMode | boolean | Enable serial mode for Bulk API |
Select this option to use serial instead of parallel
processing for Bulk API.
Processing in parallel can cause database contention. When this is
severe, the load may fail. Using serial mode guarantees that batches are processed one at
a time. Note that using this option may significantly increase the processing time for a
load. See also sfdc.useBulkApi. Sample value: false |
| sfdc.bulkApiZipContent | boolean | Upload Bulk API Batch as Zip File |
Select this option to use Bulk API to upload zip files containing binary
attachments, such as Attachment records or Salesforce CRM Content. See also sfdc.useBulkApi. Sample value: true |
| sfdc.connectionTimeoutSecs | integer | N/A | The number of seconds to wait for a connection during API
calls. Sample value: 60 |
| sfdc.debugMessages | boolean | N/A | If true, enables SOAP message debugging. By default, messages
are sent to STDOUT unless you specify an alternate location in sfdc.debugMessagesFile. Sample value: false |
| sfdc.debugMessagesFile | string (file name) | N/A | See process.enableExtractStatusOutput. Stores
SOAP messages sent to or from Salesforce. As messages are sent or received, they are appended to the end of the file. As
the file does not have a size limit, please monitor your available disk storage
appropriately. Sample value: \lexiloader\status\sfdcSoapTrace.log |
| sfdc.enableRetries | boolean | N/A | If true, enables repeated attempts to connect to Salesforce servers. See sfdc.maxRetries and sfdc.minRetrySleepSecs. Sample value: true |
| sfdc.endpoint | URL | Server host |
Enter the URL of the Salesforce server with which you want to
communicate. For example, if you are loading data into a sandbox, change the URL to
https://test.salesforce.com. Sample production value: https://login.salesforce.com/services/Soap/u/36.0 |
| sfdc.entity | string | N/A | The Salesforce
object used in the operation. Sample value: Lead |
| sfdc.externalIdField | string | N/A | Used in upsert operations; specifies the custom field with the
“External ID” attribute that is used as a unique identifier for data
matching. Sample value: LegacySKU__c |
| sfdc.extractionRequestSize | integer | Query request size |
In a single export or query operation, records are returned
from Salesforce in increments of this size.
The maximum value is 2,000 records. Larger values may improve performance but use more
memory on the client. Sample value: 500 |
| sfdc.extractionSOQL | string | N/A | The SOQL query for the data export. Sample value: SELECT Id, LastName, FirstName, Rating, AnnualRevenue, OwnerId FROM Lead |
| sfdc.insertNulls | boolean | Insert null values |
Select this option to insert blank mapped values as null values during data operations. Note that when you are
updating records, this option instructs Data Loader to overwrite any existing data in
mapped fields. Sample value: false |
| sfdc.loadBatchSize | integer | Batch size |
In a single insert, update, upsert, or delete operation,
records moving to or from Salesforce are
processed in increments of this size. The maximum value is 200. We recommend a value
between 50 and 100. Sample value: 100 |
| sfdc.maxRetries | integer | N/A | The maximum number of repeated attempts to connect to Salesforce. See sfdc.enableRetries. Sample value: 3 |
| sfdc.minRetrySleepSecs | integer | N/A | The minimum number of seconds to wait between connection
retries. The wait time increases with each try. See sfdc.enableRetries. Sample value: 2 |
| sfdc.noCompression | boolean | Compression |
Compression enhances the performance of Data Loader and is
turned on by default. You may want to disable compression if you need to debug the
underlying SOAP messages. To turn off compression, enable this option. Sample value: false |
| sfdc.password | encrypted string | N/A | An encrypted Salesforce password that corresponds to
the username provided in sfdc.username. See also Encrypt from the Command Line. Sample value: 4285b36161c65a22 |
| sfdc.proxyHost | URL | Proxy host |
The host name of the proxy server, if applicable. Sample value: http://myproxy.internal.company.com |
| sfdc.proxyPassword | encrypted string | Proxy password | An encrypted password that corresponds to the proxy username
provided in sfdc.proxyUsername. See also Encrypt from the Command Line. Sample value: 4285b36161c65a22 |
| sfdc.proxyPort | integer | Proxy port |
The proxy server port. Sample value: 8000 |
| sfdc.proxyUsername | string | Proxy username |
The username for proxy server authentication. Sample value: jane.doe |
| sfdc.resetUrlOnLogin | boolean | Reset URL on Login | By default, Salesforce resets the URL after login to
the one specified in sfdc.endpoint. To turn off
this automatic reset, disable this option by setting it to false. Valid values: true (default), false |
| sfdc.timeoutSecs | integer | Timeout |
Specify how many seconds Data Loader waits to receive a response
back from the server before returning an error for the request. Sample value: 540 |
| sfdc.timezone | string | Time Zone |
If a date
value does not include a time zone, this value is used.
You can retrieve the default value by running the TimeZone.getDefault() method in Java. This value is the time zone on the computer where Data Loader is installed. |
| sfdc.truncateFields | boolean | Allow field truncation |
Select this option to truncate data in the
following types of fields when loading that data into Salesforce: Email, Multi-select Picklist, Phone,
Picklist, Text, and Text (Encrypted). In Data Loader versions 14.0 and earlier, values for fields of those types are truncated by Data Loader if they are too large. In Data Loader version 15.0 and later, the load operation fails if a value is specified that is too large. Selecting this option allows you to specify that the previous behavior, truncation, be used instead of the new behavior in Data Loader versions 15.0 and later. This option is selected by default and has no effect in versions 14.0 and earlier. This option is not available if the Use Bulk API option is selected. In that case, the load operation fails for the row if a value is specified that is too large for the field. Sample value: true |
| sfdc.useBulkApi | boolean | Use Bulk API |
Select this option to use the Bulk API to insert, update, upsert, delete, and
hard delete records. The Bulk API is
optimized to load or delete a large number of records asynchronously. It’s faster
than the default SOAP-based API due to
parallel processing and fewer network round-trips. See also sfdc.bulkApiSerialMode. Sample value: true |
| sfdc.username | string | N/A |
Salesforce
username. See sfdc.password. Sample value: jdoe@mycompany.com |