cancel
Showing results for 
Search instead for 
Did you mean: 

Error when addon runs on client workstation

Former Member
0 Kudos

Hi,

I have a problem with my addon running on a client wokstation. The addon is created using UIAPI and DIAPI.

It works fine on the server, but gives the following error on a client workstation.

"Activex cannot create object"

What is suspect is that this error is comming when i try to do the following

Set oDIComp = New SAPbobsCOM.Company

although i am not sure at this point of time.

Anyone ever got a similar problem.

Thanks.

Satish.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Satish

This problem comes when there is some version diff in server and client

so pls check that both the server and client have the same patch of DI API

Thanks

Ankush

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Alexey,

I will try your suggestion also.

Thanks,

Satish.

Former Member
0 Kudos

Hi Adele and Ad,

Thanks for your suggestion. I will try them and let you know.

Regards,

Satish.

Former Member
0 Kudos

Hi Ad,

No i do not create any activex control.

There is only one object i try to create inside the function which is SAPbobsCOM.Company.

Set oDIComp = New SAPbobsCOM.Company

Apart from that no other object.

Regards,

Satish.

Former Member
0 Kudos

Hi Satish,

Maybe just a stupid suggestion, but if I get trouble like this I usually try to connect with Data Transfer Workbench. If you cannot connect there you know problem is probably with DI API or some internal SBO thing... if not, problem is in add-on.

Let me know what you think.

Adele

AdKerremans
Active Contributor
0 Kudos

Hi Satish,

please reinstall your di

Ad

AlexGrebennikov
Active Contributor
0 Kudos

Sometimes i've got the same error when licence server is not available or regard to the network troubles.

Have you specified a LicensMashine name? Could you ping it? If so, try to set LicenseServer-property to IP-address.

Former Member
0 Kudos

Hi Ad,

Yes, DIAPI is installed on the client workstation.

Regards,

Satish.

AdKerremans
Active Contributor
0 Kudos

Hi Satish,

Do you use a specific active-X control in your addon and is it installed on the client

Regards,

Ad

AdKerremans
Active Contributor
0 Kudos

Hi Satish,

My first thought is, do you have the DI installed at your client workstation.

Ad