I am trying to get my bulk query up and running to get data from our salesforce account. I have looked up a lot of examples since salesforce fails to give a java example for a bulk query. None of them seem to work however, even though it seems like it should be super simple. I have tried implementing from this open code:

Exporting Data to CSV file via Bulk API

And after changing the user and pass I am getting and invalid login for either invalid username, password, security token, or user locked out. I have triple checked and my credentials are all good and we are not locked out. Is there something special I need to do for the security token? I was under the impression the sforce library takes care of that.

Thank you!


For this API case, the password you supply has to be the normal password with the security token appended. You have to do that. Try that.

See the "Creating an Enterprise WSDL Application" section of Introduction to the Force.com Web Services Connector.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.