Netsuite | Invalid email address or account number error on NetSuite, but passed correct credentials

|
| By Webner

ERROR: Invalid email address or account number error on NetSuite, but passed correct credentials.

Need to authenticate NetSuite sandbox account through java application and fetch all the contacts. Below is the link to the WSDL file used to log in:

Click here

But on attempting the login with the above WSDL, gives following error:

Stacktrace: AxisFault
faultCode: {http//schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: You have entered an invalid email address or account number.
Please try again.
faultActor:
faultNode:
faultDetail:
{urn:faults_2012_1.platform.webservices.netsuite.com}
invalidCredentialsFault:<platformFaults:code>INVALID_LOGIN_CREDENTIALS
</platformFaults:code><platformFaults:message&gt
You have entered an invalid email address or account number.
Please try again.{http//xml.apache.org/axis/}hostname:partners-java10004.bos.netledger.com
You have entered an invalid email address or account number. Please try again.;

Some posts said that perhaps WSDL for sandbox and non-sandbox account are different and tried below WSDL also, but this did not work.

Solution: Account type doesn’t play many roles for this.

Normally to hit the sandbox we need to set up service like below:

NetSuiteServiceLocator service = new NetSuiteServiceLocator();
service.setNetSuitePortEndpointAddress("https://webservices.sandbox.netsuite.com/services/NetSuitePort_2012_1");

Clean and build java application, it will work like charm.

Leave a Reply

Your email address will not be published. Required fields are marked *