INVALID_LOGIN: meaning and how to fix it

Access and login Checked against the official docs on Source: SOAP API Developer Guide: Core Data Types, StatusCode

Quick answer

INVALID_LOGIN: The login credentials are not valid, the user is locked out, or the maximum number of logins has been exceeded. Start with: Verify the username and password, and that the user is active and not locked out.

Typical message: INVALID_LOGIN: Invalid username, password, security token; or user locked out.

Cause

The login credentials are not valid, the user is locked out, or the maximum number of logins has been exceeded.

How to fix INVALID_LOGIN

  1. Verify the username and password, and that the user is active and not locked out.
  2. If logging in from an IP outside the trusted range, append the security token to the password or add the IP to a trusted range.
  3. Confirm you are using the right login URL (login.salesforce.com, test.salesforce.com or the My Domain URL).

Have a different message? Paste it into the error decoder, which matches it against 45 common Salesforce errors in your browser.

Frequently asked questions

What does INVALID_LOGIN mean in Salesforce?

The login credentials are not valid, the user is locked out, or the maximum number of logins has been exceeded.

How do I fix INVALID_LOGIN?

1. Verify the username and password, and that the user is active and not locked out. 2. If logging in from an IP outside the trusted range, append the security token to the password or add the IP to a trusted range. 3. Confirm you are using the right login URL (login.salesforce.com, test.salesforce.com or the My Domain URL).

More Access and login errors

SFDX Talk is unofficial documentation. It is not affiliated with, endorsed by, or sponsored by Salesforce, Inc. Message text varies slightly by release and context, so confirm against the official page before relying on it.