# Why my GetTableRowNames failed?

**URL:** <https://forums.unrealengine.com/t/why-my-gettablerownames-failed/627748>\
**Category:** C++\
**Tags:** UE4-20, unreal-engine, UE4, question, CPP\
**Created:** [August 13, 2022, 3:37pm UTC](https://forums.unrealengine.com/t/why-my-gettablerownames-failed/627748 "2022-08-13T15:37:33Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [August 13, 2022, 4:37pm UTC](https://forums.unrealengine.com/t/why-my-gettablerownames-failed/627748/6 "2022-08-13T16:37:30Z")

</div>

This “Array has changed…” error happens, if you change the array content while iterating over it. I looked at your code - indeed, you add items within the for loop.  
You could try to iterate with a for (i =…) loop to avoid these issues.  
See [this forum thread](https://forums.unrealengine.com/t/array-has-changed-during-ranged-for-iteration/354123).

---

_[View the full topic](https://forums.unrealengine.com/t/why-my-gettablerownames-failed/627748)._
