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

Dataloader Command Line - How to feed the JAR Arguments

Though I can execute the dataloader from the command-line with the default settings, and it will work fine as long as my file is set up, I'm not able to configure it with command-line arguments.

The following command is giving me a login error. But I know for sure my credentials are good. This same operation works successfully when I have the same username,password,and endpoint populated in the file. Please demonstrate the correct formatting.

C:\temp\sfdataloader>java -jar sforcedataloader.jar -username hxqv_me@mydomain.com_test -password mypassword -operation extract -extractionSOQL "SELECT ID,Name from Account" -endpoint -extractionTarget account.csv -entity Account


2005-08-16 16:45:59,438 ERROR [main] client.PartnerClient connect ( - Invalid username or password or locked out.
2005-08-16 16:45:59,448 ERROR [main] LoaderEngineRunner main ( - Invalid username or password or locked out.

Make sure you are supplying required parameters if you are not supplying config directory.

Also supply name=value pairs as parameters. This is working fine for me

java -jar sforcedataloader.jar password=yourpassword timeoutSecs=540 extractionSOQL="Select Id, Name, Type, Ownership  FROM Account" extractionTarget=./Account_Extract.csv operation=extract endpoint= extractionRequestSize=500 timeoutsecs=540 rowToStartAt=0

parameter "entity" is not required for extract operation like mappingFile,....