# For-each-action bug/feature

**URL:** https://www.finalbuilder.com/forums/t/for-each-action-bug-feature/6095
**Category:** Bugs
**Created:** [December 7, 2017, 11:25am UTC](https://www.finalbuilder.com/forums/t/for-each-action-bug-feature/6095 "2017-12-07T11:25:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rynardald](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@rynardald](https://www.finalbuilder.com/forums/u/rynardald)
#### Post date: [December 7, 2017, 11:25am UTC](https://www.finalbuilder.com/forums/t/for-each-action-bug-feature/6095/1 "2017-12-07T11:25:56Z")

</div>

Hi,  
maybe i found a error in the for-each-actions, I’m not shure if it’s expected.  
When I have a list of two values and i’m passing this to a for-each-action, set var1 as iterator variable and var1 has already the second value of my list then the for-each-action is skipped.  
I would expect that the previous value of var1 is not important but it seems that Continua is evaluating this value too.

---

<div class="post-metadata">

### Author: ![rynardald](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@rynardald](https://www.finalbuilder.com/forums/u/rynardald)
#### Post date: [December 7, 2017, 11:35am UTC](https://www.finalbuilder.com/forums/t/for-each-action-bug-feature/6095/2 "2017-12-07T11:35:33Z")

</div>

Hi,  
i have nested for-each-actions and var1 from my previous post is part of the inner for-each.  
I tried to fix the problem by setting var1 to ‘’ before executing the for-each next time but it did not work.

---

<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: [December 8, 2017, 10:52am UTC](https://www.finalbuilder.com/forums/t/for-each-action-bug-feature/6095/3 "2017-12-08T10:52:57Z")

</div>

Can you show the settings from the actions and the structure of your stage. That would help us in being able to reproduce the problem here.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [December 11, 2017, 6:00am UTC](https://www.finalbuilder.com/forums/t/for-each-action-bug-feature/6095/4 "2017-12-11T06:00:30Z")

</div>

Hi Albrecht,  
  
Thank you for reporting this. We have now reproduced a bug where the internal state of the nested For Each action is persisted from one iteration of the parent For Each action to the next. Please download [version 1.8.1.689](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.8.1) and let us know whether this fixes your issue.

---

<div class="post-metadata">

### Author: ![rynardald](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@rynardald](https://www.finalbuilder.com/forums/u/rynardald)
#### Post date: [December 11, 2017, 7:35am UTC](https://www.finalbuilder.com/forums/t/for-each-action-bug-feature/6095/5 "2017-12-11T07:35:40Z")

</div>

Hi Dave and Vincent,   
 i checkt your new version and it works. Thanks.
