# How do I use DataTables with Blueprints?

**URL:** <https://forums.unrealengine.com/t/how-do-i-use-datatables-with-blueprints/300454>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 3, 2014, 11:47am UTC](https://forums.unrealengine.com/t/how-do-i-use-datatables-with-blueprints/300454 "2014-12-03T11:47:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wrekk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wrekk](https://forums.unrealengine.com/u/Wrekk)\
**Post date:** [December 3, 2014, 11:47am UTC](https://forums.unrealengine.com/t/how-do-i-use-datatables-with-blueprints/300454/1 "2014-12-03T11:47:01Z")

</div>

Hello, as the title says, how do I use DataTables with Blueprints? I get an error each time I import my .csv file, it’s something along the lines of “Expected column ‘hello’ not found in input.”. I think it’s a bug, though I’m not sure.

So how my things are set up:

My .csv file looks like this:

```
hello,world
1230,4560
1231,4561
1232,4562

```

And my blueprint struct looks like this:  
[http://gyazo.com/1808d56a4a859618c566f20f842a7e02](http://gyazo.com/1808d56a4a859618c566f20f842a7e02)

I make sure to import the DataTable with the Blueprint struct like this:  
[http://gyazo.com/cd4971adf854e68fc3f3a9d47d7e40e0](http://gyazo.com/cd4971adf854e68fc3f3a9d47d7e40e0)

So I have no idea why it’s not working (other than thinking it’s a bug). ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [December 3, 2014, 12:54pm UTC](https://forums.unrealengine.com/t/how-do-i-use-datatables-with-blueprints/300454/2 "2014-12-03T12:54:24Z")

</div>

HI!

Before importing in **Data Table** mode, you need create definition in C++ code.  
Look at this

> **[Data Driven Gameplay Elements](https://docs.unrealengine.com/5.1/en-US/data-driven-gameplay-elements-in-unreal-engine/)**
>
> Driving gameplay elements using externally stored data.

And for another type, like **Curve Table** , **Float Curve** and **Vector Curve** you can import without problem.

---

<div class="post-metadata">

**Author:** ![Wrekk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wrekk](https://forums.unrealengine.com/u/Wrekk)\
**Post date:** [December 3, 2014, 1:11pm UTC](https://forums.unrealengine.com/t/how-do-i-use-datatables-with-blueprints/300454/3 "2014-12-03T13:11:56Z")

</div>

So there’s no way to do it without code? ☹

---

<div class="post-metadata">

**Author:** ![mamoniem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mamoniem/32/1194698_2.png) [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Post date:** [September 9, 2015, 4:10pm UTC](https://forums.unrealengine.com/t/how-do-i-use-datatables-with-blueprints/300454/4 "2015-09-09T16:10:21Z")

</div>

Here is the whole step by step workflow, without any need for C++

> **[Datatables without C++ – UE4U](http://www.ue4u.xyz/2015/09/09/datatables-without-c/)**

-m

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_359f4d3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_359f4d3c](https://forums.unrealengine.com/u/anonymous_user_359f4d3c)\
**Post date:** [September 9, 2015, 6:28pm UTC](https://forums.unrealengine.com/t/how-do-i-use-datatables-with-blueprints/300454/5 "2015-09-09T18:28:47Z")

</div>

This is an old post. Back then it might not have been possible without C++.

For the record, in case anyone else faces the same problem, the first column in the csv file needs to contain the identifier (row name) except for the very first cell which needs to be empty:

```
,hello,world
row1, 1230,4560
row2, 1231,4561
row3, 1232,4562

```

You can then access any given row with the specified identifier.
