Link to home
Start Free TrialLog in
Avatar of shragi
shragiFlag for India

asked on

object doesn't support this property or method

object doesn't support this property or method
code: 800A01B6
Line: 244
Char: 1
source: Microsoft VBScript runtime error


I got the above error when i am running the below attached code.


The command line command that i gave is:

ExportFilesDBsCalendarsNotes Facility12 Room12 MyRoomFilesReport.log


Set app = CreateObject("eroom.application")
Set uc = app.LoginUser(erUserSiteAdministrator, erParamTypeID)


those are the lines that are problemlametic...

Set app = CreateObject("eroom.application")
this seems to be ok...
but when tries to access one of its method then it had problem...

is the problem something related to server licensing or permissions...
if so wat should be changed...


Avatar of Lethal_J
Lethal_J
Flag of United Kingdom of Great Britain and Northern Ireland image

Looks like the object isnt initialising properly.  Check that the variable 'app' has a value (i.e. is not Nothing) before trying to access its members.
Avatar of shragi

ASKER

yup, ur correct... when I replace...


Set app = CreateObject("eroom.application")
Set uc = app.LoginUser(erUserSiteAdministrator, erParamTypeID)


with

wscript.echo "app before value: "
Set app = CreateObject("eroom.application")
wscript.echo "app value: " & app
Set uc = app.LoginUser(erUserSiteAdministrator, erParamTypeID)


i got "app before value" popped up and when clicked ok...displays error...
so, app has nothing... what is the mistake..

i atached the code that i am using...

ExportFilesDBsCalendarsNotes.vbs
Avatar of ukkie_pukkie
ukkie_pukkie

Have you tryed
Set app = Server.CreateObject("eroom.application")
Avatar of shragi

ASKER

set app = Server.CreateObject("eRoom.Application")

tried this..

but an error popping up:

variable is undefined: Server
I am assuming you are running the script on the same machine this is installed, as you cannot instantiate an object installed on a seperate machine in this way.

I'm not too familiar with eRoom so I can only guess at any licensing issues however my gut feeling is that this is not the issue.  If licensing were a problem you should still be able to initialse the object but I suspect the methods would throw an exception detailing, more specifically, a licensing problem.

If it is possible, see if the eRoom COM object appears in component services as it could also be an installation issue.
Avatar of shragi

ASKER

I am assuming you are running the script on the same machine this is installed, as you cannot instantiate an object installed on a seperate machine in this way.


do you mean... am i running on the server...machine...

YEs, I am running on the eroom server machine...

Avatar of shragi

ASKER

@lethal

see if the eRoom COM object appears in component services as it could also be an installation issue.

what do mean by that... can you explain in detail

ASKER CERTIFIED SOLUTION
Avatar of Lethal_J
Lethal_J
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shragi

ASKER

Caption: eRoom Application Class | ProgID: eRoom.Application.7


this is the one that i got along with many others...
then i changed code as below...

Set app = CreateObject("eRoom.Application.7")
Set uc = app.LoginUser(erUserSiteAdministrator, erParamTypeID)

this time new error...

Errpr: Invalid database
Code: 80040355
source: eRoom.Applciation.7