---
schema_version: "1"
id: 27376a1c50545b3b8594e07cda99ec09dd938004b1a5d72c1a373bd2aa49c3ae
title: "Step Four: Create the Configuration File"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/data-loader-impl/guides/data-loader/command-line-create-config-file.md
canonical_url: https://developer.salesforce.com/docs/platform/data-loader-impl/guide/command-line-create-config-file.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7a8880468aa6ffaf780b5f9172c06421c5b8dabcdc7f237dc834199b7e408a7d
products:
  - Data Loader Guide
  - Platform Developer Content
---

# Step Four: Create the Configuration File

The process-conf.xml file contains the information that Data Loader requires to process the data. Each `<bean>` in the process-conf.xml file refers to a single process such as an insert, upsert, or export. Therefore, this file can contain multiple processes.

**note:** The Data Loader command-line interface is supported for Windows only.

In this step, you edit the file to insert accounts into Salesforce.

1.  Make a copy of the process-conf.xml file from the \samples\conf directory. Be sure to maintain a copy of the original because it contains examples of other types of Data Loader processing such as upserts and exports.
2.  Open the file in a text editor, and replace the contents with the following XML.

    **note:** Remove `sfdc.password` if you're using OAuth for login authentication.

    <!-- otherprops: set_clipboard -->
    ```xml
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
                            <beans>
                            <bean id="accountInsert"
                            class="com.salesforce.dataloader.process.ProcessRunner"
                            scope="prototype">
                            <description>accountInsert job gets the account record from the CSV file 
                            and inserts it into Salesforce.</description>
                            <property name="name" value="accountInsert"/>
                            <property name="configOverrideMap">
                            <map>
                            <entry key="sfdc.debugMessages" value="false"/>
                            <entry key="sfdc.debugMessagesFile" 
                            value="C:\DLTest\Log\accountInsertSoapTrace.log"/>
                            <entry key="sfdc.endpoint" value="https://servername.salesforce.com"/>
                            <entry key="sfdc.username" value="admin@Org.org"/>
                            <!--Password below has been encrypted using key file, 
                            therefore, it will not work without the key setting: 
                            process.encryptionKeyFile.
                            The password is not a valid encrypted value, 
                            please generate the real value using the encrypt.bat utility -->
                            <entry key="sfdc.password" value="e8a68b73992a7a54"/>
                            <entry key="process.encryptionKeyFile" 
                            value="c:\Users\{user}\.dataloader\dataLoader.key"/>
                            <entry key="sfdc.timeoutSecs" value="600"/>
                            <entry key="sfdc.loadBatchSize" value="200"/>
                            <entry key="sfdc.entity" value="Account"/>
                            <entry key="process.operation" value="insert"/>
                            <entry key="process.mappingFile" 
                            value="C:\DLTest\Command Line\Config\accountInsertMap.sdl"/>
                            <entry key="dataAccess.name" 
                            value="C:\DLTest\In\insertAccounts.csv"/>
                            <entry key="process.outputSuccess" 
                            value="c:\DLTest\Log\accountInsert_success.csv"/>
                            <entry key="process.outputError" 
                            value="c:\DLTest\Log\accountInsert_error.csv"/>
                            <entry key="dataAccess.type" value="csvRead"/>
                            <entry key="process.initialLastRunDate" 
                            value="2005-12-01T00:00:00.000-0800"/>
                            </map>
                            </property>
                            </bean>
                            </beans>
    ```

3.  Modify the following parameters in the process-conf.xml file. For more information about the process configuration parameters, see [Data Loader Process Configuration Parameters](https://developer.salesforce.com/docs/platform/data-loader-impl/guide/loader-params.md).


    -   `sfdc.endpoint`—Enter the URL of the Salesforce instance for your organization; for example, https://_yourInstance_.salesforce.com/.
    -   `sfdc.username`—Enter the username Data Loader uses to log in.
    -   `sfdc.password`—Enter the encrypted password value that you created in step 2.
    -   `process.mappingFile`—Enter the path and file name of the mapping file.
    -   `dataAccess.Name`—Enter the path and file name of the data file that contains the accounts that you want to import.
    -   `sfdc.debugMessages`—Currently set to `false`. Set it to `true` for troubleshooting. If set to `true`, debug messages are captured in the file specified by `sfdc.debugMessagesFile`.

        **note:** Debug messages can contain sensitive information such as session id.

    -   `sfdc.debugMessagesFile`—Enter the path and file name of the command-line log file.
    -   `process.outputSuccess`—Enter the path and file name of the success log file.
    -   `process.outputError`—Enter the path and file name of the error log file.
    **note:** Use caution when using different XML editors to edit the process-conf.xml file. Some editors add XML tags to the beginning and end of the file, which causes the import to fail.

4.  To perform operations in a sandbox org, set the following parameters.

    -   `sfdc.oauth.environment`—Enter the value `Sandbox`.
    -   `sfdc.endpoint.Sandbox`—Enter the value `test.salesforce.com`.

**See Also**  


-   [Data Loader Command Line Introduction](https://developer.salesforce.com/docs/platform/data-loader-impl/guide/command-line-intro.md)
-   [Step Five: Import the Data](https://developer.salesforce.com/docs/platform/data-loader-impl/guide/command-line-import-data.md)

