# Action seems to halt after Run Code block

**URL:** https://community.appfarm.io/t/action-seems-to-halt-after-run-code-block/466
**Category:** Ask the community
**Created:** [May 9, 2023, 9:10am UTC](https://community.appfarm.io/t/action-seems-to-halt-after-run-code-block/466 "2023-05-09T09:10:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kgreodor](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kgreodor](https://community.appfarm.io/u/kgreodor)
#### Post date: [May 9, 2023, 9:10am UTC](https://community.appfarm.io/t/action-seems-to-halt-after-run-code-block/466/1 "2023-05-09T09:10:55Z")

</div>

Hi!

I have a series of blocks in an action. That looks something like this

```auto
 - If statement
     - do x
 - run code
 - If statement
    - do y

```

Looking at the logs the blocks after run code does not run. Is this a bug?

---

<div class="post-metadata">

### Author: ![Eirik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/eirik/32/76_2.png) [@Eirik](https://community.appfarm.io/u/Eirik)
#### Post date: [May 9, 2023, 10:43am UTC](https://community.appfarm.io/t/action-seems-to-halt-after-run-code-block/466/2 "2023-05-09T10:43:34Z")

</div>

Hi,

Could you provide some insight on what code your are trying to run in your Run Code action node? When recreating the current setup the second IF-statement runs as well.

Just to rule it out, have you included the resolve() at the end of your code inside the run code action node to tell Appfarm to continue the execution of the action?

---

<div class="post-metadata">

### Author: ![kgreodor](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kgreodor](https://community.appfarm.io/u/kgreodor)
#### Post date: [May 9, 2023, 10:45am UTC](https://community.appfarm.io/t/action-seems-to-halt-after-run-code-block/466/3 "2023-05-09T10:45:35Z")

</div>

I tested it with a console.log statement in my app. I worked around it by moving the order of actions.

And nope, not tested the resolve() thingy. I’ll try that.

---

<div class="post-metadata">

### Author: ![kgreodor](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kgreodor](https://community.appfarm.io/u/kgreodor)
#### Post date: [May 9, 2023, 10:48am UTC](https://community.appfarm.io/t/action-seems-to-halt-after-run-code-block/466/4 "2023-05-09T10:48:33Z")

</div>

This resolved my issue
