# Cannot load all saved data

**URL:** <https://forums.unrealengine.com/t/cannot-load-all-saved-data/453888>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, Blueprint, question\
**Created:** [August 15, 2019, 5:11am UTC](https://forums.unrealengine.com/t/cannot-load-all-saved-data/453888 "2019-08-15T05:11:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhujian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zhujian](https://forums.unrealengine.com/u/zhujian)\
**Post date:** [August 15, 2019, 5:11am UTC](https://forums.unrealengine.com/t/cannot-load-all-saved-data/453888/1 "2019-08-15T05:11:38Z")

</div>

Hello, i want to know how to load all the saved data on the slot. When i load all the saved data, however, it will only load the latest saved data but not the previous data. Any advise for doing it?

 ![285061-problem-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/c/e8c9832898f6fe85ba7ec40cad22f67de30bef80.png)

 ![285048-problem-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/b/89bf269ca34c059b75804e2f5a01ad6318630e16.png)

 ![285049-problem-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/e/0ee2f0f4b0c47390fa3169ab9157a3ce05dfe73c.png)

 ![285050-problem-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/6/356215d48c75f0e62bbea00431bc6a27b82683b2.jpeg)

---

<div class="post-metadata">

**Author:** ![SpynderMK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpynderMK](https://forums.unrealengine.com/u/SpynderMK)\
**Post date:** [August 15, 2019, 11:49am UTC](https://forums.unrealengine.com/t/cannot-load-all-saved-data/453888/2 "2019-08-15T11:49:17Z")

</div>

I think the problem is on second screenshot: for every cycle, you cast into SaveUserInfo and set variable to it. So if every load will be success, you’ll only get the last one, because you overriding it. For saving all slots i would recommend create an array and every success load “add” your saved data to array.

---

<div class="post-metadata">

**Author:** ![zhujian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zhujian](https://forums.unrealengine.com/u/zhujian)\
**Post date:** [August 16, 2019, 12:23pm UTC](https://forums.unrealengine.com/t/cannot-load-all-saved-data/453888/3 "2019-08-16T12:23:32Z")

</div>

for example, if i got 2 saved file, it will display, 2 slot with 2 saved data. Patient 0 … (data of patient 0), Patient 1…(data of patient 1)

---

<div class="post-metadata">

**Author:** ![zhujian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zhujian](https://forums.unrealengine.com/u/zhujian)\
**Post date:** [August 16, 2019, 12:32pm UTC](https://forums.unrealengine.com/t/cannot-load-all-saved-data/453888/4 "2019-08-16T12:32:34Z")

</div>

Sry for the late reply.

Yes, i tried to “add” in my saved data to array, and it work perfectly now. Thanks for the reply.
