function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Stephanie Boggs 17Stephanie Boggs 17 

Encryption error when attempting to use Data Loader from Command Line


I am following the instructions at and am getting the following error.

c:\Program Files (x86)\\Data Loader\bin>process.bat "C:\Program Files (x86)\\Data Loader\bin\conf" csvAccountExtractProcess
2016-12-27 21:05:15,487 INFO  [main] controller.Controller initLog ( - Using built-in logging configuration, no log-conf.xml in c:\Program Files (x86)\\Data Loader\bin\log-conf.xml
2016-12-27 21:05:15,495 INFO  [main] controller.Controller initLog ( - The log has been initialized
2016-12-27 21:05:15,498 INFO  [main] process.ProcessConfig getBeanFactory ( - Loading process configuration from config file: C:\Program Files (x86)\\Data Loader\bin\conf\process-conf.xml
2016-12-27 21:05:15,564 INFO  [main] support.AbstractApplicationContext prepareRefresh ( - Refreshing startup date [Tue Dec 27 21:05:15 CST 2016]; root of context hierarchy
2016-12-27 21:05:15,603 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinitions ( - Loading XML bean definitions from file [C:\Program Files (x86)\\Data Loader\bin\conf\process-conf.xml]
2016-12-27 21:05:15,664 INFO  [main] support.DefaultListableBeanFactory preInstantiateSingletons ( - Pre-instantiating singletons in defining beans [csvAccountExtractProcess]; root of factory hierarchy
2016-12-27 21:05:15,700 INFO  [csvAccountExtract] controller.Controller initConfig ( - config dir created at C:\Program Files (x86)\\Data Loader\bin\conf
2016-12-27 21:05:15,711 INFO  [csvAccountExtract] controller.Controller initConfig ( - The controller config has been initialized
2016-12-27 21:05:15,712 INFO  [csvAccountExtract] process.ProcessRunner run ( - Initializing process engine
2016-12-27 21:05:15,712 INFO  [csvAccountExtract] process.ProcessRunner run ( - Loading parameters
2016-12-27 21:05:15,713 ERROR [csvAccountExtract] config.Config initEncryption ( - Error initializing encryption for key file ?c:\Temp\key.txt: Cannot Access Key File: ?c:\Temp\key.txt
2016-12-27 21:05:15,714 FATAL [main] process.ProcessRunner topLevelError ( - Unable to run process csvAccountExtract
java.lang.RuntimeException: com.salesforce.dataloader.exception.ConfigInitializationException: Error initializing encryption for key file ?c:\Temp\key.txt: Cannot Access Key File: ?c:\Temp\key.txt
        at com.salesforce.dataloader.process.ProcessRunner.main(
Caused by: com.salesforce.dataloader.exception.ConfigInitializationException: Error initializing encryption for key file ?c:\Temp\key.txt: Cannot Access Key File: ?c:\Temp\key.txt
        at com.salesforce.dataloader.config.Config.initEncryption(
        at com.salesforce.dataloader.config.Config.postLoad(
        at com.salesforce.dataloader.config.Config.loadParameterOverrides(
        ... 2 more

My process-conf is:
    <bean id="csvAccountExtractProcess"
      <description>csvAccountExtract job gets account info from salesforce and saves info into a CSV file."</description>
        <property name="name" value="csvAccountExtract"/>
        <property name="configOverrideMap">
                <entry key="sfdc.debugMessages" value="false"/>
                <entry key="sfdc.debugMessagesFile" value="c:\dataloader\samples\status\sfdcSoapTrace.log"/>
                <entry key="sfdc.endpoint" value=""/>
                <entry key="sfdc.username" value=""/>
                <entry key="sfdc.password" value="b028bead3a6fa728a40c9176df0fa742"/>
                <entry key="process.encryptionKeyFile" value="‪c:\Temp\key.txt"/>
                <entry key="sfdc.timeoutSecs" value="600"/>
                <entry key="sfdc.loadBatchSize" value="200"/>
                <entry key="sfdc.entity" value="Implementation__c"/>
                <entry key="sfdc.extractionRequestSize" value="500"/>
                <entry key="sfdc.extractionSOQL" value="SELECT Name,Account_Manager__c,Account_Executive__c,Question_Reset_Allowed__c,Configuration_Notes__c,Special_Use_Cases__c,Using_Integration__c,Integration_System__c,Integration_Notes__c,Utilizes_Roles__c,Utilizes_Group_Access__c,Client_creates_new_users__c,Contact_for_New_User_Setup__c FROM Implementation__c WHERE Implementation_Stage__c != 'Inactive'"/>
                <entry key="process.operation" value="extract"/>
                <entry key="process.mappingFile" value="C:\Program Files (x86)\\Data Loader\bin\conf\mappings.sdl"/>
                <entry key="dataAccess.type" value="csvWrite"/>
                <entry key="" value="C:\Users\User1\Documents\extract.csv"/>
Alain CabonAlain Cabon

Your folder c:\Temp doesn't exist probably or it lacks the file key.txt.

Error initializing encryption for key file c:\Temp\key.txt: Cannot Access Key File: c:\Temp\key.txt

<entry key="process.encryptionKeyFile" value="‪c:\Temp\key.txt"/>

Encrypt from the Command Line (Optionally, you can provide a key file for the encryption. In the
configuration file):

Normally the path of Temp folder will be

In order to locate temporary folder in windows 7, follow the below steps:
Click Start, in the search box, type CMD.
Right click on CMD and choose run as Administrator.
In the command prompt type ECHO %Temp%.
This displays the full path of the actual temp folder and you can follow the path and identify its location by copying the entire path and pasting it in Run command or in search options.

Best regards