I am running into the error "Invalid username, password, security token; or user locked out" when I try to retrieve the components using a package.xml.

I am trying to retrieve all the Apex classes and Triggers ,nothing apart from it. When I check my user record for login history , I do not see any login attempts using force.com migration tool.

I have appended the security token to my password as well. Can anyone throw any pointers what else I have to look for ?

Please find below the package.xml and the build.properties

build.properties package.xml

  • Have you tried https://test.salesforce.com for the serverurl value? – David Cheng Mar 31 '19 at 18:50

misalignment in password. could you please add Security token after your password.

eg: yourpasswordXXXXXXXXXX

XXXXXXXX-> your token

  • have you tried? without trying the above, how can you downgraded me? For Invalid issue, either you may given wrong credentials or wrong instance or my above answer – Raja vel Mar 7 '19 at 5:24
  • I have appended security token to my password, also included in the above screenshot as well – Pradeep Mar 7 '19 at 19:15

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.