[NB: Error code "-4009" is also related to this error (SAP 9.3 Version)]
What is the reason for this error?
You DI-API installation have a misconfiguration in it's 'b1-local-machine.xml' file on the machine that runs the Server-component
How to fix it?
Log into the System Landscape Directory (SLD) and once logged in, notice the URL (Example: https://myServer:40000/ControlCenter/). Now go to folder 'C:\\Program Files (x86)\\SAP\\SAP Business One DI API\\Conf' and edit 'b1-local-machine.xml' to have the same server and port as the previous noticed URL (Example: https://myServer:40000) [NB: SLD in some setups use port 40000 instead of 30010 and in some very early versions of SAP 9.2 SLD Address is not in the file (instead make sure license server is entered correctly)]