# List viewer duplicating get requests from DB

**URL:** <https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140>\
**Category:** Questions about Thunkable X\
**Created:** [May 9, 2020, 4:14am UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140 "2020-05-09T04:14:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocalapizzamg4tl](https://avatars.discourse-cdn.com/v4/letter/o/b38774/32.png) [@ocalapizzamg4tl](https://community.thunkable.com/u/ocalapizzamg4tl)\
**Post date:** [May 9, 2020, 4:14am UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140/1 "2020-05-09T04:14:44Z")

</div>

So i had this fixed and then we had the Firebase issue. Now when I get data from firebase it returns entries in double on my list. I can’t figure out how to fix this. here is a picture of the issue and my Get code

 ![list doubles](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f7e2ceff4f9bfd81f7a48f9272acbd98a60d067.png) ![list code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/1/81d90353912056e547ab82a0b524bc65b98f0e77.jpeg)

hoping maybe someone sees the issue. I’m already 2 days behind on this

---

<div class="post-metadata">

**Author:** ![jason.shepard20191ii](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@jason.shepard20191ii](https://community.thunkable.com/u/jason.shepard20191ii)\
**Post date:** [May 28, 2020, 6:29pm UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140/2 "2020-05-28T18:29:30Z")

</div>

I am still having this issue. Anyone know why?

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [January 4, 2021, 10:50pm UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140/3 "2021-01-04T22:50:01Z")

</div>

I’m having the same problem as well, I followed the tutorial from @darren on youtube and I’m getting the same result. This occurs on my device, and if I test it as a web app.

Let me know if I’m just simply missing something.  
Thanks again everyone!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/1/9117a0786daf218a48965d0f24453e71efdc97ee.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 5, 2021, 1:53am UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140/4 "2021-01-05T01:53:34Z")

</div>

Can you show a screenshot of the database contents related to your code?

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [January 5, 2021, 3:01am UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140/5 "2021-01-05T03:01:53Z")

</div>

Yes here’s a side by side of the result I’m seeing + the realtime data  
I wondered also if maybe the data was being entered twice but it’s not. Sorry I should have posted that originally

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/d/4d0f7cac1aa6fc582fcaa75cc678ddf5d495f3ea.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 5, 2021, 5:48am UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140/6 "2021-01-05T05:48:50Z")

</div>

Yes, I can see that your code will result in 4 entries.

Thunkable retrieves lists of objects a little different that expected.

Named objects are retrieved in a way your code will work but what you have is a list of unnamed objects (0,1,2…) Unfortunately Thunkable will retrieve elements of objects as list entries so you will have a list of “cups” with 4 entries.

You need to use this in the for each loop instead of directly reading the “cups” list

![getprops](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/ca7192737d272489beca8a7647973821ff04e3b8.png)

I hope this clarifies your problem.

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [February 5, 2021, 9:45pm UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140/7 "2021-02-05T21:45:13Z")

</div>

Sorry I never got back on this, I did update the _for each item j_ block to _ **get object properties of** cloud variable cups_ but I’m getting the same double result, but now the answers are blank. Here’s the result.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/d/2d9cc9083f0273e3551e874ad77855e79225336c.png)

Thanks again

---

<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:28am UTC](https://community.thunkable.com/t/list-viewer-duplicating-get-requests-from-db/565140/8 "2024-11-08T11:28:57Z")

</div>


