SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error in automation script

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error in automation script
Author Message
Merrick Stemen



Joined: 08 Jul 2003
Posts: 11

Post Error in automation script Reply with quote

I have a VB Script that hangs with the following error:
"An error occurred while executing automation script: Line 2: Bad number of arguments."
Line 2 of my script is a comment line, if I ignore comment lines, line 2 is a Dim statement.
Does this error message indicate something supposedly wrong in my code, or is it some 24 x 7 error? My code runs fine under version 3.4.5. This particular script is running 20 Crystal Reports. I am currently running it Synchronous/"Attached".

Tue Jul 08, 2003 2:34 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Error in automation script Reply with quote

Your have an error in your script. The VBScript engine reports line 2 as the error place and "Bad number of arguments" as the error message. 24x7 simply passes this information back to you and writes it to the job log.

Please note line that "2" is the line number within the procedure or function that errors out. It is not the line from the beginning of the script.

: I have a VB Script that hangs with the following error: "An error
: occurred while executing automation script: Line 2: Bad number of
: arguments."
: Line 2 of my script is a comment line, if I ignore comment lines, line 2 is a
: Dim statement.
: Does this error message indicate something supposedly wrong in my code, or is
: it some 24 x 7 error? My code runs fine under version 3.4.5. This
: particular script is running 20 Crystal Reports. I am currently running it
: Synchronous/"Attached".

Tue Jul 08, 2003 3:03 pm View user's profile Send private message
Merrick Stemen



Joined: 08 Jul 2003
Posts: 11

Post Re: Error in automation script Reply with quote

Curiouser and curiouser. When I try the debugger on my script on the version 3.4.9 installation, every line of *every* script is giving the following message:
"Breakpoint line must contain an executable statement."
Yet, I can run the scripts. (except for the one mentioned in the message below.) All of the scripts are hilighting commands in the expected way, and yet the debug feature is telling me none of the commands are "executable statements."
I tried the debugger on my version 3.4.5 installation and it works fine with these *same* scripts.

What's the deal?

: Your have an error in your script. The VBScript engine reports line 2 as the
: error place and "Bad number of arguments" as the error message.
: 24x7 simply passes this information back to you and writes it to the job
: log.

: Please note line that "2" is the line number within the procedure
: or function that errors out. It is not the line from the beginning of the
: script.

Tue Jul 08, 2003 4:32 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Error in automation script Reply with quote

This sounds as a side effect of some other problems, perhaps a VbScript debug DLL cannot be found?
Did you install 3.4.9 into a different directory by any chance or you are using 2 different computers?

If you are using 2 different computers make sure you restarted 3.4.9 computer after the installation.

Or you

: Curiouser and curiouser. When I try the debugger on my script on the version
: 3.4.9 installation, every line of *every* script is giving the following
: message: "Breakpoint line must contain an executable statement."
: Yet, I can run the scripts. (except for the one mentioned in the message
: below.) All of the scripts are hilighting commands in the expected way,
: and yet the debug feature is telling me none of the commands are
: "executable statements."
: I tried the debugger on my version 3.4.5 installation and it works fine with
: these *same* scripts.

: What's the deal?

Tue Jul 08, 2003 4:56 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.