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
mikenjmikenj 

Invalid username, password, security token; or user locked out with SOAP API

Hello,

I am using the SOAP API.  When I make the login call https://login.salesforce.com/services/Soap/c/37.0/ I always get the error 'Invalid username, password, security token or user locked out'.

I have changed my password, reset my security token , etc and I still get the error. My username and password (with token) works in the Apex Data Loader. 

How can I get more debug information about what I need to change.   

I have left the portal field empty because we don't have a portal.

Thank You,
 
SandhyaSandhya (Salesforce Developers) 

Hi,

Please refer below thread if it helps you.

https://success.salesforce.com/answers?id=90630000000guiKAAQ

Hope this helps you!

Thanks and Regards
Sandhya
Daniel K 21Daniel K 21
in my trial version , I can't find the option to reset security token. 
any help?
Andrew HayterAndrew Hayter
Login to Sales Force with the ID you wish to work with, then:
Reset Security Token:
https://tinyurl.com/SF-Reset-Secret

View Consumer Key and Secret
https://tinyurl.com/SF-Consumer-and-Secret

View login attempts
https://um5.lightning.force.com/lightning/settings/personal/LoginHistory/home

 
Mohamed CherkaouiMohamed Cherkaoui
It seems that if you have previously created a password and security token then go on to generate the WSDL file this password will not give you access to the SOAP API. You have to reset both the password and the security token (in this order) to grant that user access to SOAP APIs.