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
Princes91221Princes91221 

Unable to extract data from data loader through Command Line Interface

Hello guys,

I am unable to extract values/data using data loader CLI.
I was able to extract data from sandbox but unable to extract from production.
I have generated encrypted password but it is still throwing error like,
`Error while calling web service operation: login, error was:com.sforce.soap.partner.fault.LoginFault: null.`
This is my process-conf.xml
 
<beans>
    <bean id="extractCandidate"
        class="com.salesforce.dataloader.process.ProcessRunner"
        scope="prototype">
        <description>Extract candidate__c from Salesforce Sandbox using Data Loader CLI.</description>
        <property name="name" value="extractCandidate"/>
        <property name="configOverrideMap">
            <map>
                <entry key="sfdc.debugMessages" value="true"/>
                <entry key="sfdc.debugMessagesFile" 
                    value="C:\Users\PrinceSharma\Desktop\DataLoaderPractice\DataExtractThroughCLI\output\candidateExtractSoapTrace.log"/>
                <entry key="sfdc.endpoint" value="https://login.salesforce.com"/>
                <!-- <entry key="sfdc.Server host" value="https://www.salesforce.com"/> -->
                <entry key="sfdc.username" value="user@email.com"/>
                <!--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="encrytedPassword****"/>
                <entry key="process.encryptionKeyFile" 
                    value="C:\Users\PrinceSharma\.dataloader\dataLoader.key"/>
                <entry key="sfdc.timeoutSecs" value="600"/>
                <entry key="sfdc.useBulkApi" value="true"/>
                <entry key="sfdc.loadBatchSize" value="200"/>
                <entry key="sfdc.extractionRequestSize" value="50"/>
                <entry key="sfdc.entity" value="Candidate__c"/>
                <entry key="sfdc.extractionSOQL" value="SELECT Account_Name__c,EmpStatus_Active_Inactive__c,STARTDATE__c,Tentative_End_Date__c,End_Date_on_Project__c,Name,CANDIDATELASTNAME__c,CANDIDATEEMAIL__c,Phone__c,Account_Manager_Name__c,VMS__c,Touchpoint__c,Intelliswift_SDFEDF__c,PMurphy_SDFEDF__c,Visa_Type__c,SDF_Received_On__c,EDF_Received_On__c,Reason_Project_Ended__c FROM Candidate__c"/>
                <entry key="process.operation" value="extract"/>
                <entry key="dataAccess.name" value="C:\Users\PrinceSharma\Desktop\DataLoaderPractice\DataExtractThroughCLI\result\candidateExtract.csv"/>
                <entry key="dataAccess.type" value="csvWrite"/>
            </map>
        </property>
    </bean>
</beans>

Is anything wrong in this code.

Any help would be appreciated.

Thank you in advance!
AnkaiahAnkaiah (Salesforce Developers) 
Hi,

Refer the below link have solution for similar kind of ask.

https://developer.salesforce.com/forums/?id=9062I000000BkQEQA0

Thanks!!