Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Failed to add Run Script script code: Unknown error (https://www.kinook.com/Forum/showthread.php?t=2694)

BrandonG 06-07-2007 03:35 PM

Failed to add Run Script script code: Unknown error
 
I am receiving the error message in the subject when a particular step executes. The step is a vbs script that runs for setting up email notifications based on certain conditions. When it fails, which it does every time the first time it hits it, I restart it and it completes successfully. The same code is called later and it also completes successfully. It just seems as though the script fails the first time only. Below is the step code.

I have verified that all of the macros referenced exist. The other thing to mention is that this step was copied from another bld script where it does NOT exhibit this problem.

Your help is appreciated.


VBScript

0
1
SET RECIPIENTS/MESSAGE

kinook 06-07-2007 04:49 PM

A change was made in v6.2a, intended to improve the error reporting when running script code, that we just discovered can have actually the opposite effect (at least for VBScript syntax errors), and it's possible that this change also results in the sporadic error you mention here (if so, due to a bug in the ActiveX script host or VBScript script engine).

The main download has been updated with a patch that backs out the problematic change to correct the 'Unknown error' rather than detailed error information when invalid VBScript code is executed inside VBP, and may also help with the sporadic error you reported here.

BrandonG 06-08-2007 08:32 AM

Thank you!!!
 
the problem was with using the %failstep_output% inline because it had " in it. The error I was getting was expected end of statement.

I can't say enough how much I appreciate the quick turnaround on stuff.


All times are GMT -5. The time now is 06:05 PM.


Copyright © 1999-2023 Kinook Software, Inc.