Skip to Content

DI API - Failing to register/unregister SAPbobsCOM.dll

Nov 28, 2017 at 07:38 AM


avatar image

Hello everyone

I'm quite a novice in SAP and its integration. I've developed a small console application in C# that read csv files and write data in SAP Business One. To do so, I added a reference to the library SAPbobsCOM90.dll.

However, when I generate an installer (install-shield) and that I deploy my application on any computers, I get the following message during the installation:

Error 1904. Module C:\...\SAPbobsCOM90.dll failed to register. HRESULT - 2147220473. Contact your support personnel.

I tried to deploy this application on a computer that has SAP Business One 9.x and the DI API already. But I also got the same result from with a computer that has none of them installed.

Anyone experienced that problem? What should I do? What is the best practice?

Thank you in advance.

10 |10000 characters needed characters left characters exceeded

How are you generating your installer?


On Visual Studio 2012, I add an InstallShield Limited Edition project in my solution. I follow the instructions from SAPbobsCOM90 was added as a reference to the main project.

* Please Login or Register to Answer, Follow or Comment.

3 Answers

Bryan Gomez Nov 28, 2017 at 04:13 PM

Try to run your console app using administrator and make sure that those PC you are trying to install your apps has SAP DI API 32bit.


Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thank you, I will try.

Edy Simon Dec 02, 2017 at 08:45 AM

Hi Frederic,

For the SAP Customization to run, it will require that the DI API (SAPbobsCOM) is already installed on the target PC.
Install this from SAP Installer.
Your Addon itself, just need to reference the SAPbobsCOM, no need to register again on the target pc.
By default installshield will automatically register this dll.
When you create the installshield installer, at the step of selecting the project output, you can choose NOT to register this.



10 |10000 characters needed characters left characters exceeded
Frédéric Hoffert Nov 29, 2017 at 12:02 PM

I already tried (for the installer), but with no result.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

See my updated answer.


Thanks, I will try.