ASP Error - Class Does Not Support Automation

Hi,

I am trying to schedule a Webi report thru SDK using classic ASP. I am using the sample code provided here…

http://devlibrary.businessobjects.com/businessobjectsxir2/en/en/BOE_SDK/boesdk_com_doc/doc/boesdk_com_doc/Tutorials48.html

Inside ScheduleWebiReport.asp, there’s the subroutine below…


Sub ScheduleWebiReport(iStore, webiID, format)

Dim webiDocs
Set webiDocs = iStore.Query("Select SI_ID, SI_NAME From CI_INFOOBJECTS Where SI_ID=" & webiID)
If (webiDocs.Count = 0) Then 
    redirectWithError "../Error.asp", "The Web Intelligence document does not exist."
End If
	
Dim webiDoc
[b]Set webiDoc = webiDocs.Item(1).PluginInterface("")[/b]  	
Dim scheduleInfo 
'Creates an interface to the scheduling options for the Webi report.
Set scheduleInfo = webiDoc.SchedulingInfo
' Runs the Webi report once.
scheduleInfo.Type = 0
' Runs it right now.
scheduleInfo.RightNow = True
' Set the scheduled format
webiDoc.WebiFormatOptions.Format = format

iStore.Schedule(webiDocs)    

End Sub

Whenever I reach the line: Set webiDoc = webiDocs.Item(1).PluginInterface("") (bolded above), I always get the error below…

Microsoft VBScript runtime error ‘800a01ae’
Class doesn’t support Automation

Has anyone encounter this issue or know how to fix this?
Thanks in advance.


ayatle (BOB member since 2008-03-10)

Issue resolved. As it turns out, you can’t run the same ASP code from the
same server trying to login to differnt CMS with differnet BO
versions. My ASP code was in BOX1 with XI3.1 SP2
and the ASP code resides there. I tried using that same code to pull
information from the CMS on BOX2 (by just changing the credentials) which has XI3.1 SP3. That’s when the error showed up. The minute I copy all my ASP code, and created a virtual directory on BOX2 and run the ASP code from BOX2 to query the CMS on BOX2, the code ran without problems.


ayatle (BOB member since 2008-03-10)