# For each item j named components doesn't work but uniquely identifying them does

**URL:** <https://community.thunkable.com/t/for-each-item-j-named-components-doesnt-work-but-uniquely-identifying-them-does/1959219>\
**Category:** Questions about Thunkable X\
**Created:** [July 11, 2022, 12:35am UTC](https://community.thunkable.com/t/for-each-item-j-named-components-doesnt-work-but-uniquely-identifying-them-does/1959219 "2022-07-11T00:35:27Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [July 11, 2022, 12:35am UTC](https://community.thunkable.com/t/for-each-item-j-named-components-doesnt-work-but-uniquely-identifying-them-does/1959219/1 "2022-07-11T00:35:27Z")

</div>

I didn’t know how to title this, more power to you if you think of a better title.

The top yellow rectangle does work, while the bottom red rectangle does not work  
One of my screens in my DB is called Start so I know my work is double checked for me

 ![Screen Shot 2022-07-10 at 7.31.15 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/9989647e4ab1f378c1d4f45c37f5b6e2439f47ec.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 11, 2022, 3:38am UTC](https://community.thunkable.com/t/for-each-item-j-named-components-doesnt-work-but-uniquely-identifying-them-does/1959219/2 "2022-07-11T03:38:30Z")

</div>

There’s a ton of missing details here that we would need to be able to help you troubleshoot this. If you want to provide the value of each `get property of object` block then we could probably figure out why this doesn’t work.

---

<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:** [July 11, 2022, 4:21am UTC](https://community.thunkable.com/t/for-each-item-j-named-components-doesnt-work-but-uniquely-identifying-them-does/1959219/3 "2022-07-11T04:21:42Z")

</div>

Wow what a rookie mistake I left out the get object properties of block ugh 🤦‍♂️

---

<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:** [July 11, 2022, 6:30am UTC](https://community.thunkable.com/t/for-each-item-j-named-components-doesnt-work-but-uniquely-identifying-them-does/1959219/4 "2022-07-11T06:30:04Z")

</div>

From the way you are coding the elements inside the loop and comparing them with the direct assignment, I can see a difference there.

What would be the content of **j** in the first round?  
would it be **ROW-Start** , or just **Start**?

In the `set Row` part you are using **j** as if it contains **Start** and if this is true then the `get property of object j` should fail because it expects **ROW-Start** as it is mentioned in the blocks above the loop.

The other thing is: the loop block `for each item....` will only recognize fully formed lists in JSON. Most of the time you do not have a list but only a JSON collection which will not be identified as a list in the loop block. In such cases you will need the block `get object properties....`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [October 9, 2022, 6:30am UTC](https://community.thunkable.com/t/for-each-item-j-named-components-doesnt-work-but-uniquely-identifying-them-does/1959219/5 "2022-10-09T06:30:57Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
