SAP DI-API Error "-4008 - Login SLD Failed, make sure the company and user credentials are correct"

  • Updated

New to B1 Usability Package? Check this 5-minute overview for easy SAP Business One Automation, Reporting, Screen Customization, and more!


Warning: Prior to Boyum Horizontal Products version 2019.05 other error codes like -8024 and -8025 was also presented as -4008 so if you are running a lower version please also check for these errors

What is the reason for this error and how to fix it?

There can be multiple reasons for this Error as this is SAP's general Di-API error in SAP 9.2 (In SAP 9.3 This error is instead reported back as error code "-132" except when thrown from the B1 client itself]

 

Possible Reason How to Solve

Wrong username/password
You entered a wrong SAP username and/or Password (or the user do not exist anymore)

Re-run server-component and double-check that user exists and username/password is entered in the right casing (if in doubt try and log into the SAP B1 Client with the same credentials)

IP-Adress Instead of given name or vice versa
As server name, you have entered an IP Address but in the SAP System Landscape Directory (SLD) it is entered with a given name (or vice versa)

Log into the SLD and note down the method used (IP or given name). Then re-run the server-component and entered the server name in exactly the same manner as SLD
The Server name is wrong
Server name of where the SAP Server Tools are installed is incorrect (most often cause of this is rename of the server)
Re-run the server component so it can know the new Servername
Server name without a port [HANA Only]
When you enter the server name for a HANA System you need to include the port (normally 30015)
Re-enter the server name with the port in the server-component
Incorrect Server name casing [HANA Only]
HANA Only: When you enter the server name for a HANA System the server name is case-sensitive
Double-check that you have the right server name casing
Incorrect Database casing
SAP Database names are case-sensitive so if your database is called 'SboDemoUS' you change the name of it to example 'SboDEMOus' (different casing) you can get this error from the DI-API
Re-run the server component so it can know the new database name
[B1 Client Only] Newly created database
If you have just created the SAP Database via the B1 Client and try to start an Add-on you can get this error since the DI-API do not yet know about this database

Restart the SAP Business One Client in order to let the DI-API know about the database.

See SAP Note: https://launchpad.support.sap.com/#/notes/2840174 for more info

Windows Service "SAP Business One Server Tools Service" is not running
This service runs the SLD, and if not running you can't connect to the SLD
Check Windows Services that the service is running on the machine running the server-component
Wrong configuration of Tomcat Server
This is due to a misconfiguration of the Apache Tomcat Server. 
Please see SAP note: https://launchpad.support.sap.com/#/notes/2526992 on how to fix it

Video on how to fix:

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.