cancel
Showing results for 
Search instead for 
Did you mean: 

Error #429:ActiveX component can't create object:

Gregory_Roche2
Champ in-the-making
Champ in-the-making

'Onbase.Application'

Line:22

This is the main body of my VB Script:

 

Sub Main35()
 Dim obApp, obDoc, obKeys, kwName, DateCompVal, i, j, DateAssgnVal
 Set obApp = CreateObject("OnBase.Application")
 Set obDoc = obApp.CurrentDocument
 Set obKeys = obDoc.Keywords

 For i = 0 to obKeys.count - 1
  kwName = obKeys(i).Name
  If (kwName = DateAssgn) Then
    DateAssgnVal = obKeys(i).Value
  End If
 Next

 DateCompVal = AddBusinessDay(DateAssgnVal, 1)
 
 call obKeys.AddKeyword (DateComp,DateCompVal)
 call obDoc.StoreKeywords()
End Sub

Can not for the life of me figure out why I am getting this error...

Thanks

 

 

 

10 REPLIES 10

Daniel_Quill
Elite Collaborator
Elite Collaborator

Greg,

Is this script run inside of OnBase (e.g., VBScript hook or right-click 'run script')?

What OS are you running it on (e.g., Windows XP/Vista/7)?

Is the OS 32 or 64 bit?

Gregory_Roche2
Champ in-the-making
Champ in-the-making

Script is being called from a workflow action...

My workstation OS is Win 7 Professional

64bit

 

Daniel_Quill
Elite Collaborator
Elite Collaborator

Just for grins... Have you tried running the thick client in 'administrator mode'.  Right-click on the shortcut for the thick client and select "Run as administrator".  Then try the script.

That worked!