cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DI API connection is not working SBO 10.0

0 Likes
4,123

Hi Experts!

We have recently upgraded from v9.3 v10.0. Since then our DI API's are not working. We even tried with both 32bit and 64bit versions. Our SBO users are bounded with Microsoft Windows accounts and they are working perfectly.

When we connect to SBO via DI API:

1) Using domain users (e.g. {domain}/{SBOUser}😞

Error Code: -4001

Error Message: Domain user is not bound to SBO user of company

** The domain user is already bounded with SBO user and SBO client is already working very much fine. **

2) Using SBO users:

Error Code: -4008

Error Message: Login SLD Failed, make sure the server, company and user credential are correct

We even tried to keep the domain user password same as of SBO user password, but still the same errors.

But when we try to get DI Company object through UI API, then its working perfectly.

Please advise!

Accepted Solutions (0)

Answers (2)

Answers (2)

erik_vandongen
Explorer
0 Likes

Hi Experts, 

Did you ever figure this out? We are having the same issue. We are also on SBO 10.0 and moved to "Active Directory Domain Services" login as well. Loging into the UI works fine. Also the service layer is not giving any problem. However when we want to connect through the DI Api, we receive the error:

Domain user is not bound to SBO user of company

The code is as follow:

SAPbobsCOM.Company sapCompany = new Company();
sapCompany.Server = “somesql”;
sapCompany.SLDServer = “someserver:40000”;
sapCompany.language = ln_French;
sapCompany.DbUserName = “somesqluser”;
sapCompany.DbPassword = “somepw”;
sapCompany.CompanyDB = “CompanyDb”;
sapCompany.UserName = “domain.local\theuser”;
sapCompany.Password = “xxxx”;
sapCompany.DbServerType = BoDataServerTypes.dst_MSSQL2017;
sapCompany.UseTrusted = false;

All help is appreciated.

 

nidhisingh14
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi kanwalshehzad

For Error Code: -4008 , please use section 10 of note 2710077

For Error Code: -4001, please install SLD Agent and then check connection again.

Kind Regards
Nidhi Singh
SAP Business One Support

0 Likes

Hi Nidhi,

I followed the document and also just to share that DTW is working fine, which means SLD Agent is not an issue.

Moreover if I execute

oCompany.GetCompanyList();

then its returning the list of companies but when I try to execute

oCompany.Connect();

then I get error as -4001.