cancel
Showing results for 
Search instead for 
Did you mean: 

Automation error - library not registered SAP B1 8.8

former_member221339
Participant
0 Kudos

Hi

I have just upgraded my pc to SAP 8.8 from 2007 and I get an 'automation error - library not registered' on one of my old vb6 applications

My newer vb.net programs seem fine

I have checked the references and the di api 8.8 and ui api 8.8 are selected

I have deleted the sm_obs_dll folder in my temp folder and registered the di api program

Can anyone suggest anything please ?

Thanks

Regards Andy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Andy,

A good option is to convert old program to new if possible.

Thanks,

Gordon

former_member221339
Participant
0 Kudos

Hi Gordon

It seems to be a problem even if I create a new application

It seems to be a problem with the ui api, the di api seems to work fine

I have reloaded the client but with no joy

How would I manually register the ui api ?

Also someone has told me I need to update my office, I am running 2003

Could that be a problem as well ?

Thanks

Regards Andy

Former Member
0 Kudos

I don't think office version has anything to do with this. The error library not registered means some dll files are not registered. Check error log detail to find out which one.

former_member221339
Participant
0 Kudos

Hi Gordon

I can't see any errors in event viewer

Regards Andy

Former Member
0 Kudos

You may add some break points to troubleshoot.

former_member221339
Participant
0 Kudos

Hi Gordon

I have run the code in debug mode

When I try to update a customers reference in a sales order it gives me the error

That's why I think it's the ui api

Thanks

Regards Andy

Former Member
0 Kudos

What is a customers reference, NumAtCard?

former_member221339
Participant
0 Kudos

Hi Gordon

Yes it's the numatcard field

I did it just as a test

Regards Andy

Former Member
0 Kudos

To update that, you need DI. Do you use UI?

former_member221339
Participant
0 Kudos

Hi Gordon

The sales order is on screen

It was to test the ui api

I hope that makes sense

Regards Andy

Former Member
0 Kudos

What is your connection part of UI?

Former Member
0 Kudos

Andy,

Am I right to think you mean that you have already connected to the UI, got the sales order form into a SAPbouiCOM.Form object & only when you try to update the field you get the error?

I think we might need to see your code as there cant be many lines in it

Regards

former_member221339
Participant
0 Kudos

Hi Gordon

I connected using code created by the B1 dev environment 2.1

Here is my code, it's the line

form.Items.Item("14").Specific.string = "hope"

which gives me the error

Thanks

Regards Andy

Public Class Button__139__1

Inherits B1Item

Public Sub New()

MyBase.New

FormType = "139"

ItemUID = "1"

End Sub

<B1Listener(BoEventTypes.et_CLICK, false)> _

Public Overridable Sub OnAfterClick(ByVal pVal As ItemEvent)

Dim ActionSuccess As Boolean = pVal.ActionSuccess

Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)

Dim item As Item = form.Items.Item("1")

Dim button As Button = CType(item.Specific,Button)

'ADD YOUR ACTION CODE HERE ...

Dim recset As Recordset = B1Connections.diCompany.GetBusinessObject(BoObjectTypes.BoRecordset)

recset.DoQuery("select * from ocrd")

form.Items.Item("14").Specific.string = "hope"

End Sub

End Class

Former Member
0 Kudos

I know you shouldn't have to, but maybe try casting - I had problems working with VB.NET on the 2007 version if I didn't cast objects

so like:

CType(form.Items.Item("14").Specific, SAPbouiCOM.EditText).String = "hope"

or maybe try the value property:

CType(form.Items.Item("14").Specific, SAPbouiCOM.EditText).Value = "hope"

It's guesswork but based on the fact that you have connected and already got the form object succesfully so I don't think it can mean your library isnt registered; if it wasn't, surely your form object would be empty?

former_member221339
Participant
0 Kudos

Hi

Thanks for the suggestion but it didn't work

Regards Andy

former_member221339
Participant
0 Kudos

Hi

I think the problem is I had 2 versions of the development environment loaded.

I have removed one version add / remove programs but I can't remove the other one, it comes up with error a warning box but with no text

Anyone have any ideas ?

Thanks

Regards Andy

Former Member
0 Kudos

Well I presume you have already reinstalled DI API - have you tried using regsvr? In a DOS command window, try REGSVR32 /u "full path to DI API dll" to un-register followed by REGSVR32 "full path to DI API dll" to re-register.

Then you can also register the UI by going to your B1 client directory and running the SAPbouiCOM.exe.

If that's what you meant you've already tried, sorry I couldn't be any help 😕 My next suggestion would be full uninstall reinstall but its a bit drastic, maybe hang around til someone else has a better idea

former_member221339
Participant
0 Kudos

Hi

I have already done that with no joy but thanks for asking

Regards Andy

former_member221339
Participant
0 Kudos

Hi

Just wondered if anyone can help me on this ?

Bit stuck at the moment

Any ideas welcome

Thanks

Regards Andy