# I cannot store the list in local storage using the for each block

**URL:** <https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485>\
**Category:** Questions about Thunkable X\
**Created:** [May 1, 2020, 3:28am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485 "2020-05-01T03:28:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 1, 2020, 3:28am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/1 "2020-05-01T03:28:07Z")

</div>

[https://x.thunkable.com/projects/5eab7cbd80e9316a7b116d87/417ae781-3991-406a-a87c-685c93e1b825/designer](https://x.thunkable.com/projects/5eab7cbd80e9316a7b116d87/417ae781-3991-406a-a87c-685c93e1b825/designer)

The for each block doesn’t seem to work.

In the project linked above, when I click the DBSave button, I cannot save the list in storage.

Does anyone know why?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 1, 2020, 10:40am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/2 "2020-05-01T10:40:16Z")

</div>

For something like that. The count block works well. It has a built in counter. You set the number it counts to by using the length of list block and use the length of the shortest list you are using in the loop.

Count from (1) to (length of {words}) by (1)

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 1, 2020, 11:11am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/3 "2020-05-01T11:11:45Z")

</div>

I also tried storing the list in local storage as a count block.  
But it was not saved.  
Before that, I was able to save well no matter how I did it.  
Suddenly I can’t do it recently. I don’t know why.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 1, 2020, 11:25am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/4 "2020-05-01T11:25:15Z")

</div>

i clicked the first button and it caused my browser window to freeze 🤣

why would you need to store it in the local storage?  
what are you trying to accomplish i wonder?

why can’t you reference items from the localDB?

what does this example app do? how do you know if it’s worked, there’s no output?  
what do you hope this app would do?

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 1, 2020, 11:34am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/5 "2020-05-01T11:34:34Z")

</div>

Yes.  
It stops.  
I recently stopped developing apps due to this symptom.

Local storage is to create an English dictionary.  
When studying a word, typing a word key is intended to bring you pronunciation and meaning.

The reason you don’t use local DB right away is that local DB doesn’t have the ability to delete items.  
So, inevitably, the data in the local DB is moved to the local storage.

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 5, 2020, 8:35am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/6 "2020-05-05T08:35:53Z")

</div>

I’m still getting an error even though you said you removed me from the beta test.

If you create and test a new account, there are no errors. Because of this, the error is only occurring in my account.  
It is already over a week.

I had to stop all my work.  
If it’s impossible to fix the error, give me the money I’m using for a fee.

Or, stop the paid period.  
More details were posted on GitHub.

> <https://github.com/thunkable/thunkable-issues/issues/495>
>
> I cannot store the list in local storage using the for each block
> I found that this error only occurs on my...

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 5, 2020, 4:21pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/7 "2020-05-05T16:21:30Z")

</div>

> [@mom7667yafy](#):
>
> I’m still getting an error even though you said you removed me from the beta test.

A couple of things to note here @mom7667yafy:

1. I’m in the beta too and I’m not experiencing this issue. Is it possible that there’s an issue elsewhere in your project? Likely candidates would be duplicate event handlers and using the wrong variable by accident. (The second one was what happened to me when I tested this last week).
2. Can you import the “working” version form your new account to your PRO account and let us know what happens.

Thanks.

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 5, 2020, 4:53pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/8 "2020-05-05T16:53:47Z")

</div>

I used the same code.  
[https://x.thunkable.com/projects/5ead722c5fb9ef282f77ed4c/0e14ec43-1e79-42ec-80d0-2e756bce6512/blocks](https://x.thunkable.com/projects/5ead722c5fb9ef282f77ed4c/0e14ec43-1e79-42ec-80d0-2e756bce6512/blocks)

1.It works fine on my new account.  
Watch the attached video.

[![](https://img.youtube.com/vi/vnB94gkW1vI/hqdefault.jpg "저장잘됨") ](https://www.youtube.com/watch?v=vnB94gkW1vI)
  
The saved value is displayed well in the list view.
1. An error occurs in my existing paid account.  
Watch the attached video.  
[https://youtu.be/a92pcl-GQAM](https://youtu.be/a92pcl-GQAM)  
No value is stored in storage. The saved value is displayed as null in the list view.

I stopped all work for this.  
The app cannot be released.  
An error occurs in the app.

---

<div class="post-metadata">

**Author:** ![Dany\_Coimbra](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@Dany\_Coimbra](https://community.thunkable.com/u/Dany_Coimbra)\
**Post date:** [May 5, 2020, 4:56pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/9 "2020-05-05T16:56:04Z")

</div>

List viewer don’t work on online preview!! You need to download the app

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 5, 2020, 5:00pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/10 "2020-05-05T17:00:42Z")

</div>

@Dany_Coimbra The list viewer is supported…

but @mom7667yafy Local Storage is not.

[https://docs.thunkable.com/web-preview](https://docs.thunkable.com/web-preview)

What happens when you install this app on your phone?

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 5, 2020, 5:16pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/11 "2020-05-05T17:16:48Z")

</div>

I get the same error on my mobile phone.  
So, I haven’t been able to release the app I made.

Can’t you go into my account and test it out?

Others don’t seem to have this problem.  
Is there any possibility of this happening in my account?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 5, 2020, 5:26pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/12 "2020-05-05T17:26:31Z")

</div>

could it be that you just didn’t code it correctly? Not that I have seen your code or am implying you don’t know how to code. But i have made plenty of errors that cause issues like this.  
@mom7667yafy

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 5, 2020, 5:32pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/13 "2020-05-05T17:32:53Z")

</div>

I’m getting errors in all of the previously released apps that work fine.

I have the same problem with dozens of apps in my account. It works well in the past, so it’s already released on the App Store.  
It makes no sense that the code is wrong.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 5, 2020, 6:03pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/14 "2020-05-05T18:03:14Z")

</div>

> [@mom7667yafy](#):
>
> Can’t you go into my account and test it out?

I can look at a project if you share the link with me - would that help?

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 5, 2020, 6:13pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/15 "2020-05-05T18:13:27Z")

</div>

The address was shown a while ago.  
Attach the address below again.

[https://x.thunkable.com/projects/5ead722c5fb9ef282f77ed4c/0e14ec43-1e79-42ec-80d0-2e756bce6512/designer](https://x.thunkable.com/projects/5ead722c5fb9ef282f77ed4c/0e14ec43-1e79-42ec-80d0-2e756bce6512/designer)

I just tested it on my phone.  
On the phone, an error occurred in both the old and new accounts.

[![](https://img.youtube.com/vi/8F3Dc54mdzY/hqdefault.jpg "Screenshot 2020 05 06 023905") ](https://www.youtube.com/watch?v=8F3Dc54mdzY)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 5, 2020, 8:14pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/16 "2020-05-05T20:14:38Z")

</div>

> [@mom7667yafy](#):
>
> The address was shown a while ago

I think we need to move this conversation out of the Data Viewer thread.

It’s inappropriate and unfair to the other 70 or so Beta testers here to wander off topic like this to discuss an issue with lists and list and the list viewer.

I’d also have a number of questions about how you are initialising your lists and how you’ve structured your loops.

---

<div class="post-metadata">

**Author:** ![Dany\_Coimbra](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@Dany\_Coimbra](https://community.thunkable.com/u/Dany_Coimbra)\
**Post date:** [May 5, 2020, 8:39pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/17 "2020-05-05T20:39:23Z")

</div>

Uhhh sorry

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 7, 2020, 12:03pm UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/18 "2020-05-07T12:03:50Z")

</div>

[![]( " - YouTube") ](https://www.youtube.com/watch?v=WVp6MNUxCIg)

[https://x.thunkable.com/projects/5eb3ee7278c922853da38f59/98346b11-97d3-4b29-9ff4-8cb94477058e/blocks](https://x.thunkable.com/projects/5eb3ee7278c922853da38f59/98346b11-97d3-4b29-9ff4-8cb94477058e/blocks)  
The app works fine on new accounts.  
In the existing paid account, the same app generates an error.  
Watch the video above

I made the app as simple as possible.  
You can easily figure out what the problem is.

 ![스크린샷 2020-05-07 오후 9.02.55](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/906fbb489a570da96d6c82d122551a0e68e3f8fa.png)

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [May 8, 2020, 7:22am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/19 "2020-05-08T07:22:56Z")

</div>

I did a test a while ago.  
In the live test, it suddenly worked fine.  
Previously, it didn’t work with live tests on my existing paid account, but this seems to have been fixed.  
But i still  
When I release the app and test it on my phone  
I am getting an error.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:29am UTC](https://community.thunkable.com/t/i-cannot-store-the-list-in-local-storage-using-the-for-each-block/564485/20 "2024-11-08T11:29:23Z")

</div>


