# For Each Loop of Replicated Array does not pass Array Element 

**URL:** <https://forums.unrealengine.com/t/for-each-loop-of-replicated-array-does-not-pass-array-element/2646962>\
**Category:** Blueprint\
**Tags:** Replication, object, unreal-engine, Multiplayer, Blueprint, question\
**Created:** [August 19, 2025, 1:20pm UTC](https://forums.unrealengine.com/t/for-each-loop-of-replicated-array-does-not-pass-array-element/2646962 "2025-08-19T13:20:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vevlex\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vevlex\_1](https://forums.unrealengine.com/u/Vevlex_1)\
**Post date:** [August 19, 2025, 1:20pm UTC](https://forums.unrealengine.com/t/for-each-loop-of-replicated-array-does-not-pass-array-element/2646962/1 "2025-08-19T13:20:44Z")

</div>

Hello everyone, I am a new to Unreal and I have encountered an issue that has stumped me for the past week and I cannot figure it out on my own. In summary:

I have a multiplayer inventory system. When adding an item I run all of the logic (find empty slot, place item etc) on the server, and once the item is finished being placed, it updates the array of all of the items (array of objects that holds info on item). This array is rep\_notified, and the rep\_notify works and gets triggered.

On the clients inventory widget, I have a for loop that goes through the replicated array and adds the items. The issue is that the array is replicated (I can hover over the array in break mode and all of the data is there), but when I try to get an item from the array, it says that the reference is unknown. Everything works fine when the host picks up the item, it only happens when a client picks up the item.

 ![Screenshot 2025-08-19 112527](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/b/64bd52071f65298820441486ead9694803712ec5.png)

 ![Screenshot 2025-08-19 112537](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/4/114952d1b8280848d66c024f457ec4bc52d511cd.png)

 ![Screenshot 2025-08-19 112557](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/e/6ae98b4ca227c05d355b95638745bc3534f64f74.png)

I have a feeling that there is something that I dont know about how u\_objects are replicated (you cannot tick that for replication, so I am probably setting the owner of the u\_object wrong or something), as I can replicate actors with normal variables (doors etc) fine, I just don’t know how to find the information that I am missing about u\_objects.

Could someone please explain why this is happening, or at least point me in a direction of where I should look to find out?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 19, 2025, 5:03pm UTC](https://forums.unrealengine.com/t/for-each-loop-of-replicated-array-does-not-pass-array-element/2646962/2 "2025-08-19T17:03:13Z")

</div>

What I suspect is happening is that the array is replicated but the actual objects it holds are not present on the client.

See if you can access the item in the client when they are being created and before they are added to the inventory.
