# AfterAction event of RunActionList

**URL:** https://www.finalbuilder.com/forums/t/afteraction-event-of-runactionlist/1160
**Category:** Discussion
**Created:** [March 27, 2009, 9:38am UTC](https://www.finalbuilder.com/forums/t/afteraction-event-of-runactionlist/1160 "2009-03-27T09:38:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 27, 2009, 9:38am UTC](https://www.finalbuilder.com/forums/t/afteraction-event-of-runactionlist/1160/1 "2009-03-27T09:38:12Z")

</div>

Hi everybody,

&nbsp;

In the AfterAction event of some actions of interest I write the ActionResult out to a database for nightly build reports.

For most actions this works perfectly well, except for RunActionList. Here, the AfterAction event is called while the ActionList is still running, and it always reports success.

Is there any way I can pick up failure of an ActionList (meaning an action inside the list failed) in the AfterAction event?

I'm using FinalBuilder 5.5.0.707

Rgds

Richard

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 30, 2009, 1:22am UTC](https://www.finalbuilder.com/forums/t/afteraction-event-of-runactionlist/1160/2 "2009-03-30T01:22:14Z")

</div>

Hi Richard   
  
 This is an unfortunate side effect of how action lists work… basically the actionlist’s first runnable action is pushed onto a stack and thus becomes the next action to execute… the side effect is that the run actionlist action actually completes before the actionlist starts.   
  
 The work around to this is to wrap the Run ActionList action inside a Try Catch block (right click on it and select the Refactoring menu). If the Run ActionList action fails the Catch block will be executed.   
  
 HTH.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 1, 2009, 2:16am UTC](https://www.finalbuilder.com/forums/t/afteraction-event-of-runactionlist/1160/3 "2009-04-01T02:16:22Z")

</div>

Hi Vincent,

Thanks for the information.That solves the biggest part of my problem.

Now, to make it perfect: Is there an easy way to get the actionId of the action that failed from within the catch block?

Rgds

Richard
