Link to home
Start Free TrialLog in
Avatar of Pyromanci
PyromanciFlag for United States of America

asked on

Microsoft VBScript runtime error (Line: 16) Error: 424 Object required:

Hello,

I am using a program that runs scheduled VBS scripts and processes AD HOC SQL reports. Now i would take this problem to the software manufacture but they are no longer in business it would seem. or at least have changed all there contact info and i can not locate it.

I have attached the VBS script that is pulled into the program (which is a VB6 based program) ever 30 minutes.

Looking at the script i can tell that the code is not actually run as a vbs script, but instead executed as inside a function in the program. This exact same script will pull in and run just fine on almost any other computer we have with this software running, but just one computer is throwing out the following errors.

12/04/08 14:30:01 > modCommonUtilities::RunScript, (Line:31) No. 424 Object required: 'RequestInfo'
12/04/08 14:30:01 > SCRIPTING ERROR:  Microsoft VBScript runtime error (Line: 16) Error: 424 Object required: 'RequestInfo' ''

Now i have comfirmed that VB6 runtime is on the computer and registered, though it may be possible that some dll or OCX is still missing. beyond that i am stumped.

I am not sure if any of you will be able to help, but thank you.
dim s,by, bm, bd, ey, em, ed 
 
by = datepart("YYYY",Date())
bm = datepart("M",Date())
bd = 1
 
ey = datepart("YYYY",(dateadd("w",-1,(dateadd("m",1,(DateSerial(by, bm, bd)))))))
em = datepart("M",(dateadd("w",-1,(dateadd("m",1,(DateSerial(by, bm, bd)))))))
ed = datepart("D",(dateadd("w",-1,(dateadd("m",1,(DateSerial(by, bm, bd)))))))
 
 
RequestInfo.Add Date() -1, "BDATE"
 
RequestInfo.Add Date() -1, "EDATE"
 
s = ExecuteReport(733)
 
'writestr s
SendMail "XXXXXXXXXXXXX", "Daily Audit", s

Open in new window

Avatar of Don
Don
Flag of United States of America image

what does line 31 say?
Avatar of Pyromanci

ASKER

There is no line 31 that i have accees too.. Unless its part of some wrraper the program is adding after it includes the vbs file.
the Object required: usually means it dont exist
That much i do understand, the problem is that this only happens on this computer. Where as on the other 16 computers that have this program. it will execute that script with no problem.
try adding some "wscript.echo <variable>" to the script to narrow down which one is the culprit
ASKER CERTIFIED SOLUTION
Avatar of Don
Don
Flag of United States of America 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
Ok, that got rid of that error, but a new problem has sprung up. Now when it grabs a date, it doesn't let it go until the program is restarted.

I think i may just scrap the program and rebuild all the ASQL AD-HOC reports in php.