Skip to Content

Why SAPbobsCOM.Company COM is too slow to instance on Windows Server?

Feb 15, 2017 at 07:13 PM


avatar image
Former Member

I developed an console application to connect to SAP B1 via DI API and notice the line below is too slow to execute. It takes about 1 min to run.

SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company();
More about the context:
  1. using SAPBusinessOneSDK.dll
  2. running the app on the same server of SAP B1 were installed

Can someone help me identify the cause of the problem?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Apr 10, 2017 at 07:18 PM

So, I've found the solution to my problem!
I've removed all b1logger files from the folder: *C:\ProgramData\SAP\SAP Business One\Log\SAP Business One\%UserProfile%\DIAPI* and the execution speed was improved. Now, the connection occurs in 7 seconds. So, we deactivated the b1logger for our DI API!

10 |10000 characters needed characters left characters exceeded