# Catastrophic failure when running VBScript in ASync Action Group

**URL:** <https://www.finalbuilder.com/forums/t/catastrophic-failure-when-running-vbscript-in-async-action-group/2849>\
**Category:** Bugs\
**Created:** [June 6, 2007, 7:57am UTC](https://www.finalbuilder.com/forums/t/catastrophic-failure-when-running-vbscript-in-async-action-group/2849 "2007-06-06T07:57:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhunter2](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/bc79bd/32.png) [@rhunter2](https://www.finalbuilder.com/forums/u/rhunter2)\
**Post date:** [June 6, 2007, 7:57am UTC](https://www.finalbuilder.com/forums/t/catastrophic-failure-when-running-vbscript-in-async-action-group/2849/1 "2007-06-06T07:57:24Z")

</div>

Hi all,

I am trying to take advantage of overlapping checkout time with compile time and using ASync Action Groups to do so.

Now I tried to add the following VBScript BeforeAction script:

Echo("\*\*\* BeforeAction Script Started \*\*\*")  
SetCurrentDir(ExtractFilePath(ProjectFile))  
FullPath = ExpandRelativePath(OutputPath, ExeName)  
Echo("Output file: " + FullPath + ExeName)  
Echo("\*\*\* BeforeAction Script Ended \*\*\*")

It runs as expected (gives me the fully defined output file for a VB6 compile action) when I run current action, but If I run from within an ASync Action Group it gives me the error:

Error Executing script : BeforeAction  
Catastrophic failure  
Line : 0  
Char : 0  
------------------------------------------------------  
Error in BeforeScript : VBScript  
This Action did not execute.  
------------------------------------------------------

&nbsp;Any ideas of why this would fail?&nbsp; It fails even if it is the only action defined in the group.&nbsp; I am using FB v.4.2.0.317

Thanks,

Rob

---

<div class="post-metadata">

**Author:** ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)\
**Post date:** [June 7, 2007, 2:30am UTC](https://www.finalbuilder.com/forums/t/catastrophic-failure-when-running-vbscript-in-async-action-group/2849/2 "2007-06-07T02:30:43Z")

</div>

Hi Rob,   
  
 Thanks for your post. Unfortunately, I can’t yet reproduce this in 4.2.0.317 (I pasted your script into a BeforeAction event of a Run Script action, then put it into an Async group.) Do you have any special values in any of the variables? Is there anything else unusual which may be contributing to the problem?   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

**Author:** ![rhunter2](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/bc79bd/32.png) [@rhunter2](https://www.finalbuilder.com/forums/u/rhunter2)\
**Post date:** [June 7, 2007, 6:30am UTC](https://www.finalbuilder.com/forums/t/catastrophic-failure-when-running-vbscript-in-async-action-group/2849/3 "2007-06-07T06:30:51Z")

</div>

Hi Angus,

I have a project variable assigned into the action to determine the project file location.&nbsp; I wonder if this makes a difference?

Note, I tried moving the beforeAction to an AfterAction thinking that it might resolve the variable, but no difference.

I tried removing the variable and replacing with a fully defined path - no difference.

I have the project file in a subst'ed drive.&nbsp; I tried giving the full path from the source drive, and still no difference.

I wonder if it is related to being a VB6 action?

Running out of ideas quickly now...&nbsp;

Thanks,

Rob

---

<div class="post-metadata">

**Author:** ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)\
**Post date:** [June 8, 2007, 1:44am UTC](https://www.finalbuilder.com/forums/t/catastrophic-failure-when-running-vbscript-in-async-action-group/2849/4 "2007-06-08T01:44:39Z")

</div>

Hi Rob,   
  
 Could you please zip up the project file (and the logs, if possible) and email it to us at support at finalbuilder dot com? That should help us track the problem down.   
  
 Regards,   
  
 Angus
