# Workflow JS stopped working after reload data

**URL:** <https://community.weweb.io/t/workflow-js-stopped-working-after-reload-data/7854>\
**Category:** Ask us anything\
**Tags:** workflows, bug\
**Created:** [March 30, 2024, 4:40pm UTC](https://community.weweb.io/t/workflow-js-stopped-working-after-reload-data/7854 "2024-03-30T16:40:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lianr7](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@lianr7](https://community.weweb.io/u/lianr7)\
**Post date:** [March 30, 2024, 4:40pm UTC](https://community.weweb.io/t/workflow-js-stopped-working-after-reload-data/7854/1 "2024-03-30T16:40:47Z")

</div>

Guys, I have a problem with a workflow made with JS that was working and stopped after a data reload.

The task is to join several arrays of previous actions and create a new custom array. It was working perfectly before I clicked Reload Data. I have already made sure that all the variables necessary to perform the action are filled in. Other codes that I had also validated stopped working.

Help me, please.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/32937ef900f80e727a671d5dbf0abae3af08ac14.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/7773dd31c5214ffb6d6a3b94fbcbace7adbb7e1b.png)

---

<div class="post-metadata">

**Author:** ![lianr7](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@lianr7](https://community.weweb.io/u/lianr7)\
**Post date:** [April 1, 2024, 12:30am UTC](https://community.weweb.io/t/workflow-js-stopped-working-after-reload-data/7854/2 "2024-04-01T00:30:21Z")

</div>

UP! Someone help me, please

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [April 3, 2024, 2:35pm UTC](https://community.weweb.io/t/workflow-js-stopped-working-after-reload-data/7854/3 "2024-04-03T14:35:49Z")

</div>

Hi, maybe on array is not an array anymore after the data reload and so it cause your logic to crash ?

Its difficult to help you without further details, what is the error you get ? Can you paste your last custom JS logic here ?

---

<div class="post-metadata">

**Author:** ![lianr7](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@lianr7](https://community.weweb.io/u/lianr7)\
**Post date:** [April 3, 2024, 7:49pm UTC](https://community.weweb.io/t/workflow-js-stopped-working-after-reload-data/7854/4 "2024-04-03T19:49:46Z")

</div>

It returns nothing. There in “current value” in JS it is empty even though there is a “return” at the end of the code.

The problem is definitely not the code, because it was working. It stopped after clicking the ‘reload data’ button. Even redoing the previous actions, it doesn’t work

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [April 4, 2024, 9:17am UTC](https://community.weweb.io/t/workflow-js-stopped-working-after-reload-data/7854/5 "2024-04-04T09:17:05Z")

</div>

I’m not able to help you debug this without any error or code provided I’m sorry

You can write to [support.weweb.io](http://support.weweb.io) if you dont feel confident sharing information here

---

<div class="post-metadata">

**Author:** ![lianr7](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@lianr7](https://community.weweb.io/u/lianr7)\
**Post date:** [April 4, 2024, 1:09pm UTC](https://community.weweb.io/t/workflow-js-stopped-working-after-reload-data/7854/6 "2024-04-04T13:09:15Z")

</div>

Thank you
