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? Mar 31, 2019 at 18:50

1 Answer 1


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, 2019 at 5:24
  • I have appended security token to my password, also included in the above screenshot as well
    – Pradeep
    Mar 7, 2019 at 19:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .