# Is there a way to update and save data table from blueprint?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 29, 2017, 4:07pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390 "2017-12-29T16:07:20Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![razee01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@razee01](https://forums.unrealengine.com/u/razee01)\
**Post date:** [December 29, 2017, 4:07pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/1 "2017-12-29T16:07:20Z")

</div>

Hi, I found how we can use data table, but I also want to make update it and save it. For example I have a data table like below. [TABLE=“border: 1, cellpadding: 1, width: 500”]

Name  
Color  
width  
Owner

Box\_01  
Blue  
20  
Adam

Box\_02  
Green  
30  
Ben

I can create a box with different color, width and owner. I want to update the data table and store it like… [TABLE=“border: 1, cellpadding: 1, width: 500”]

Name  
Color  
width  
Owner

Box\_01  
Blue  
20  
Adam

Box\_02  
Green  
30  
Ben

Box\_03  
Pink  
25  
Rony

How can I do it?

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [December 29, 2017, 9:57pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/2 "2017-12-29T21:57:23Z")

</div>

DataTables are read-only data, they are not designed to be used as a database.  
Last time I checked there’s no way to update a DataTable outside the UEditor, but has been a looong time since I’ve used them so not sure anymore.

---

<div class="post-metadata">

**Author:** ![razee01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@razee01](https://forums.unrealengine.com/u/razee01)\
**Post date:** [December 30, 2017, 6:56am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/3 "2017-12-30T06:56:03Z")

</div>

Hi **[BrUnO XaVIeR](https://forums.unrealengine.com/member/434-bruno-xavier)**, Thanks for the answer. Is there any other way where I can save the new box with with the new information along with the old boxes?

---

<div class="post-metadata">

**Author:** ![Yun-Kun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yun-Kun](https://forums.unrealengine.com/u/Yun-Kun)\
**Post date:** [December 30, 2017, 1:07pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/4 "2017-12-30T13:07:57Z")

</div>

Saving an array of the structure you’re using for your Data Table in a Save Game can be an acceptable workaround depending on your needs.

Quote me if you want more information.

---

<div class="post-metadata">

**Author:** ![razee01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@razee01](https://forums.unrealengine.com/u/razee01)\
**Post date:** [January 7, 2018, 5:54pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/6 "2018-01-07T17:54:14Z")

</div>

Yun-Kun, actually you are right. By the save game actually we can avoid it.

---

<div class="post-metadata">

**Author:** ![DavidBoura](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidboura/32/998366_2.png) [@DavidBoura](https://forums.unrealengine.com/u/DavidBoura)\
**Post date:** [November 21, 2018, 1:46am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/7 "2018-11-21T01:46:34Z")

</div>

> [@Yun-Kun](#):
>
> Saving an array of the structure you’re using for your Data Table in a Save Game can be an acceptable workaround depending on your needs.
> 
> Quote me if you want more information.

If data tables are still read-only, i’ve just wasted my day and possibly months ; )  
I was so happy i’ve 100% understood how they work, how to setup different things in my project, easily and elegantly, with interactive tables updating, saving and loading for the player.  
Save game would mean constant access to disk just for my step sequencer. I don’t know how to deal with arrays for now, and i’m going first check if structures are writable in game already.

Bottle in the sea.

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [November 21, 2018, 11:48am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/8 "2018-11-21T11:48:43Z")

</div>

> [@DavidBoura](#):
>
> If data tables are still read-only, i’ve just wasted my day and possibly months ; )

]([https://www.unrealengine.com/marketplace/usqlite-database](https://www.unrealengine.com/marketplace/usqlite-database))

https://i.pinimg.com/originals/3b/ba/44/3bba4469769abafe61059ecb959f79ed.png

[https://www.unrealengine.com/marketplace/usqlite-database](https://www.unrealengine.com/marketplace/usqlite-database)

---

<div class="post-metadata">

**Author:** ![DavidBoura](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidboura/32/998366_2.png) [@DavidBoura](https://forums.unrealengine.com/u/DavidBoura)\
**Post date:** [November 21, 2018, 1:18pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/9 "2018-11-21T13:18:17Z")

</div>

> [@BrUnO\_XaVIeR](#):
>
> https://i.pinimg.com/originals/3b/ba/44/3bba4469769abafe61059ecb959f79ed.png
> 
> [https://www.unrealengine.com/marketplace/usqlite-database](https://www.unrealengine.com/marketplace/usqlite-database)]([https://www.unrealengine.com/marketplace/usqlite-database](https://www.unrealengine.com/marketplace/usqlite-database))

I was planning to depress for a few weeks and loose half my weight, but you just resurrected me.

---

<div class="post-metadata">

**Author:** ![MarcoMariaRossi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcomariarossi/32/1069093_2.png) [@MarcoMariaRossi](https://forums.unrealengine.com/u/MarcoMariaRossi)\
**Post date:** [August 5, 2019, 12:07pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/10 "2019-08-05T12:07:20Z")

</div>

> [@BrUnO\_XaVIeR](#):
>
> https://i.pinimg.com/originals/3b/ba/44/3bba4469769abafe61059ecb959f79ed.png
> 
> [https://www.unrealengine.com/marketplace/usqlite-database](https://www.unrealengine.com/marketplace/usqlite-database)]([https://www.unrealengine.com/marketplace/usqlite-database](https://www.unrealengine.com/marketplace/usqlite-database))

amazing, thank you

---

<div class="post-metadata">

**Author:** ![Chumble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chumble](https://forums.unrealengine.com/u/Chumble)\
**Post date:** [August 5, 2019, 4:54pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/11 "2019-08-05T16:54:19Z")

</div>

I was really hoping for a better answer here. Savegames are currently giving me issues where they can be loaded from but not saved to and not deleted which is very frustrating. No one else seems to have this issue and I’ve gotten no responses on any post I’ve made about them.

Is there another alternative?

---

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [October 23, 2019, 11:26pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/12 "2019-10-23T23:26:11Z")

</div>

> [@ClavosTech](#):
>
> BP Wishlist:
> 
> It’d be nice to be able to Load / Save Datatables in csv / xls / xlsx / odf at runtime without plugins.  
> Epic are always touting how far Blueprints have come, but this is one aspect that’s missing imho.

Unfortunately this is still not a part of the engine proper, but I’ve added this functionality as a plugin:

[https://forums.unrealengine.com/unreal-engine/marketplace/1677414-runtime-datatable-import-text-csv-or-google-sheet-at-runtime-and-fill-an-array-of-structs](https://forums.unrealengine.com/unreal-engine/marketplace/1677414-runtime-datatable-import-text-csv-or-google-sheet-at-runtime-and-fill-an-array-of-structs)

It also has Google Sheets support so you can edit a Sheet and see your changes propagated to your game live during runtime. You can also use a text CSV on your local machine if you prefer so you can read and write using a local data table.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [May 17, 2023, 2:56am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/13 "2023-05-17T02:56:29Z")

</div>

the engine now seems to support load/save to csv/json  
this is available on 5.1 at least but not sure if it’s on previous too.

also  
You can save your data table from cpp.  
call  
FDataTableEditorUtils::BroadcastPreChange(DataTable, FDataTableEditorUtils::EDataTableChangeInfo::RowList);

you can get the rows using DataTable-\>GetAllRows and you get some pointers.  
you can modify them.  
or you can add rows using DataTable-\>AddRow

at the end you need to call DataTable-\>Modify()  
then  
UEditorLoadingAndSavingUtils::SavePackages({DataTable-\>GetPackage()}, false);  
then  
FDataTableEditorUtils::BroadcastPostChange(DataTable, FDataTableEditorUtils::EDataTableChangeInfo::RowList);

credits goes to “Authaer” who told me this after some time of searching

> **[Discord - A New Way to Chat with Friends & Communities](https://discord.com/channels/187217643009212416/221799439008923648/1107897175255548047)**
>
> Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

---

<div class="post-metadata">

**Author:** ![XxNotAGamerxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxNotAGamerxX](https://forums.unrealengine.com/u/XxNotAGamerxX)\
**Post date:** [June 4, 2023, 6:23am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/14 "2023-06-04T06:23:07Z")

</div>

> [@nande](#):
>
> the engine now seems to support load/save to csv/json

Please edit clarify which version? (Im stuck in 4.27 - seeking solutions.) Ty.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [October 24, 2023, 12:55am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-update-and-save-data-table-from-blueprint/104390/15 "2023-10-24T00:55:15Z")

</div>

> [@nande](#):
>
> this is available on 5.1

it was specified on the next line.  
i haven’t tried on 4.27 but would not be surprised if it’s not supported.  
check the source code for 5.1 maybe you can backport it.
