cancel
Showing results for 
Search instead for 
Did you mean: 

Unhandled COMException (Interop.SAPbobsCOM) in 2007A PL48

Former Member
0 Kudos

hi,

i just upgraded my system to 2007A pl48 and now an unhandled exception is thrown in my Addon:

the unhandled exception is thrown in second line:

StackTrace: at SAPbobsCOM.ICompany.GetBusinessObject(BoObjectTypes Object)

Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
oUserFieldsMD = moSBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)

Is it a new bug of pl48 or did something changed?

best regards

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Eneveux
Product and Topic Expert
Product and Topic Expert
0 Kudos

Markus,

Did you install the DI API for PL 48 also?

Eddy

Former Member
0 Kudos

hi Eddy,

yes i did.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, I just encountered a similar error.

This happened to me because the DI API dll reference in the project I was working on supported an older SAP B1 server. Make sure the reference you include in your project matches your SAP server installation.

Former Member
0 Kudos

Dear Markus Rewak,

Please use Try, Catch statement to catch the exception and check what exception is get.

Best Regards

Jane Jing

SAP Business One

Former Member
0 Kudos

Hello Jane,

this is the thrown exception:

System.Runtime.InteropServices.COMException (0x80010105): Ausnahmefehler des Servers. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

at SAPbobsCOM.ICompany.GetBusinessObject(BoObjectTypes Object)

Does the code above (oUserFieldsMD = moSBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields) works at your side within pl48?

best regards

Markus

Former Member
0 Kudos

hi,

i solved it. I didn't upgrade the server tools. After upgrading the server tools and deleting the smobsdll-folder everything works fine.

thank you very much for investing time on this thread.

best regards

Markus

Former Member
0 Kudos

Hi Markus,

I have the same problem as you. Can you tell me how you solved it?

Best regards,

Ana Silva

Former Member
0 Kudos

hi Ana,

1.did you also upgrade the server tools ?

2. %temp% --> delete the folder sm_obs_dll

3. restart SAP Business One

in my case it worked after this 3 steps

Markus

Former Member
0 Kudos

Hi Markus,

Thank you for your help, but I can't find folder sm_obs_dll.

I already instaled patch 49 and upgrade the server tools but the problem persists.

Regards,

Ana Silva