cancel
Showing results for 
Search instead for 
Did you mean: 

problem connect using di api

Former Member
0 Kudos

Recently, i updated sap 8.8 to 8.8.2 and i try to rebuild my app.

when i try to connect using di api, i have two errors

First, visual studio displayed this message

error al iniciar la aplicación porque no se encontró Xalan-C_1_7_0.dll. La reinstalación de la aplicación puede solucionar el problema

And sap returns this

Error: 126

Message: OBserverGeneric::GetNewLibraryFromServer: LoadLibrary for observer failed System error 126

i think the problem is the dll but i unregister and register SAPbobsCOM88.dll

thx

Edited by: Miguel Garcia D. on Feb 3, 2012 9:27 PM

Accepted Solutions (1)

Accepted Solutions (1)

Johan_H
Active Contributor
0 Kudos

Hi Miguel,

Have you checked / tried the following:

1. completely uninstall the DI API from both your own and the target computer.

2. if the folder C:\Program Files\SAP\SAP Business One DI API\ is left, delete it from both computers.

3. remove the SM_OBS_DLL folder from thetemp directory on both computers (Start > run > %temp%)

4. confirm that the DI API installer package is the exact same version as your B1 system and reinstall it

5. confirm that the DI API reference in your app is now the correct one.

6. Start your app and make a connection. (Connecting the first time should take up to a minute as the newest driver is downloaded from the server.)

if necessary you may have to repeat the process, but then also perform the first four steps for the B1 client installation

Regards,

Johan

Former Member
0 Kudos

Thx Johan,

If I try to connect to SQLSVR2005 the connection is succesful, but when i try to connect to SQLSVR2008 SAP return the error:

126: OBserverGeneric::GetNewLibraryFromServer: LoadLibrary for observer failed System error 126

i have installed sql native client 2008

Johan_H
Active Contributor
0 Kudos

If I understand you correctly, you are running the system on MS SQL 2005, and you are trying to connect with sqlclient 2008 ?

When you set the connection's sql version property it must conform to the database version, not the sqlclient version.

Also, I am not sure that you can use an sqlclient version that is different from the database version.

Regards,

Johan

Edited by: Johan Hakkesteegt on Feb 8, 2012 7:55 AM

Edited by: Johan Hakkesteegt on Feb 8, 2012 7:57 AM

Former Member
0 Kudos

Hi Johan, finally i solved my problem.

Solution:

- Unistall all components of SAP

- remove %tmp%

- restart

- Install sbo client 8.8.2

- Unistall di api

- restart

- Install di api again

Thanks for you attention.

Regards

Miguel

Answers (0)