If you get this during startup of Add-on
Please see SAP Note 2029714 - Entry 24 (Issue is caused by SAP changing the License port in SAP 9.2 PL05 and you need to change it in the B1LocalMachine.xml of the DI-API) - You can see this video on how to fix it: https://youtu.be/EQoqX6hJUBQ
(NB: Remember that is port indeed need to be changed then you might also need to reflect this change in Firewall ect.)
If you get this during setup of Server component
When setting up the server component you may encounter the error "(-10) The specified resource name cannot be found in the image file".
The root cause of the issue is currently unknown but in most cases the issue is that you wrote the server name incorrectly compared to what is setup in the SLD.
Please make sure that the connection information is correct and that you wrote the exactly same thing in database server as what is registered in the SLD.
Restarting the server also helps sometimes as it seems the DI-API can get in a state where this error always happens until the server is restarted (SAP bug).
SAP also have a note on the issue: 2029714
From the SAP note:
22. Error: Connect to Business One failed. (-10) The specified resource name cannot be found in the image file
- Root Cause
The license server cannot be reached.
Start the license server or verify the license server address and TCP IP port.
24. Error: Connect to Business One failed. (-10) - The specified resource name cannot be found in the image file.
- Root Cause 1
Code change in SAP Business One 9.2 PL05 and above versions require server names are specified exactly the same in below places:
a. System Landscape Directory → Servers and Companies → Server Name
b. External component that are connecting
- Solution 1
Ensure the values are maintained exactly the same in above places.
- Root Cause 2
The SLDAddress value is not correctly set in the DI API's configuration file (..\SAP\SAP Business One DI API\Conf\b1-local-machine.xml).
- Solution 2
For more details please refer to the SAP note 2352940.
If the issue still persist after verifying the connection information please try to use the DTW tool from SAP and see if you can connect with the same data on the same machine.
If you cannot connect using DTW you need to contact SAP support. (here is more information why this is an important test: https://www.youtube.com/watch?v=mlhaqitA26I&t=1s)