# Actions inside sequential blocks inside iterator action nodes are logged out of order

**URL:** https://community.appfarm.io/t/actions-inside-sequential-blocks-inside-iterator-action-nodes-are-logged-out-of-order/1047
**Category:** Bug reports
**Tags:** service
**Created:** [February 15, 2024, 1:53pm UTC](https://community.appfarm.io/t/actions-inside-sequential-blocks-inside-iterator-action-nodes-are-logged-out-of-order/1047 "2024-02-15T13:53:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![oyvind.byhring](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/oyvind.byhring/32/1060_2.png) [@oyvind.byhring](https://community.appfarm.io/u/oyvind.byhring)
#### Post date: [February 15, 2024, 1:53pm UTC](https://community.appfarm.io/t/actions-inside-sequential-blocks-inside-iterator-action-nodes-are-logged-out-of-order/1047/1 "2024-02-15T13:53:47Z")

</div>

I’m not 100% sure if this is a bug or working as intended, but with a setup like this:

while{  
\_\_action1  
\_\_sequential block{  
\_\_\_\_action2  
\_\_}  
}

The log shows execution like this of action1 and action2 for 3 iterations:  
action1  
action2  
action2  
action2  
action1  
action1

while I would expect this result:  
action1  
action2  
action1  
action2  
action1  
action2

If I actually do some work in action 1 and 2 (like updating an int variable) it seems like they are actually executed the way I would expect so it’s just the logs that are confusing. Nevertheless, I spent a good hour trying to figure out what I had done wrong 😅

See attached photos of my action setup and logs

 ![Action setup](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/0/0753542de9cb4dc705732dea314bfb2e0bebe324.png)  
 ![Logs](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/9/9ea1417dc6362374eec1a01dac4ca3c41946afb6.png)

---

<div class="post-metadata">

### Author: ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)
#### Post date: [February 16, 2024, 8:28am UTC](https://community.appfarm.io/t/actions-inside-sequential-blocks-inside-iterator-action-nodes-are-logged-out-of-order/1047/2 "2024-02-16T08:28:39Z")

</div>

Hello Øyvind,

We have identified a similar issue that has been patched in the development version of Appfarm Create.

Could you please provide us with the version of Appfarm Create you are currently using? You can find this information by hovering over the small “i” in the top-right corner of your environment on the deploy page.

Also, does issue occur in services only or apps as well?

![bilde](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/3/3bfebc73981f86625cfe3684de1dd1be2b689b2e.png)

Thanks,  
Erik

---

<div class="post-metadata">

### Author: ![oyvind.byhring](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/oyvind.byhring/32/1060_2.png) [@oyvind.byhring](https://community.appfarm.io/u/oyvind.byhring)
#### Post date: [February 16, 2024, 8:46am UTC](https://community.appfarm.io/t/actions-inside-sequential-blocks-inside-iterator-action-nodes-are-logged-out-of-order/1047/3 "2024-02-16T08:46:30Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/b/b34f561010b418faa49fa80c85b0efc0ab425839.png)

This log is from invoking a service endpoint.

---

<div class="post-metadata">

### Author: ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)
#### Post date: [February 16, 2024, 9:04am UTC](https://community.appfarm.io/t/actions-inside-sequential-blocks-inside-iterator-action-nodes-are-logged-out-of-order/1047/4 "2024-02-16T09:04:11Z")

</div>

Thank you for the information, I will pass it on to the dev team.
