# Import CSV to DataTabel Help

**URL:** <https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 20, 2020, 1:07pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027 "2020-06-20T13:07:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [June 20, 2020, 1:07pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/1 "2020-06-20T13:07:30Z")

</div>

I’m trying to make a database that will hold items in my game, but I want to use a excel and make a .CSV file to import the items to save time.

but everytime I try I get an error. here at the screenshot of the CSV file and then error

Can someone tell me what I do wrong here?

 ![304971-skjermbilde-413.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/0/7109c8e6fe606951ca5160b0e7c0983c20236bfc.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2020, 2:02pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/2 "2020-06-20T14:02:31Z")

</div>

Here’s a quick tut:

Data in the file:

![304974-csv.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/e/89eabc636b3f8a24b37035872f3a76c9ae58200b.jpeg)

Struct for the DT:

![304975-struct.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/d/dbd38d094b4a0cec1611100438c31f932e226dc6.jpeg)

Drag and drop csv into content browser, choose the struct:

 ![304977-drop.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/4/734b6cfe5bc9eedfc171fbc67b64fb2f0b5bf51f.jpeg)

Data in the DT:

![304978-dt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/4/6c4570d3483e24a10d637b8c06ef085fc045e452.jpeg)

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [June 20, 2020, 2:22pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/3 "2020-06-20T14:22:13Z")

</div>

That did not work, I got thsi mesage when i did import the fodler with ethe csv file:

![304954-0015.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/e/e3eb42e163f4a21fca82752c856fcdf425bda436.png)

 ![304957-0016.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/7/2b700f57394d73196bf9ff17a7134e481cdb2f2a.png)

 ![304958-0017.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/7/e67a618299077d83c57e335d4807207ec8b41c0b.png)

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [June 20, 2020, 2:37pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/4 "2020-06-20T14:37:03Z")

</div>

Do you know way I get this error?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2020, 3:36pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/5 "2020-06-20T15:36:20Z")

</div>

CSV stands for Comma Separated Values. Where are your commas? The file format might be CSV but you do need the commas. Create the files in a spreadsheet (google sheets work very well here) and then save it as CSV.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2020, 3:38pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/6 "2020-06-20T15:38:40Z")

</div>

A csv opened in a notepad would look like this:

![304985-annotation-2020-06-20-163748.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/0/2a0c0795e9089b5c605d31bb00597aaad5eb0651.jpeg)

Don’t add spaces, if you add spaces, you’ll end with incorrect data.

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [June 20, 2020, 3:49pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/7 "2020-06-20T15:49:55Z")

</div>

I copy and paste the the text from Excel to a notepad, here is an image from Excel:

![304960-0019.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/d/87dc89de959ab4b013a041764f280ef1611ea319.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2020, 3:54pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/8 "2020-06-20T15:54:10Z")

</div>

> I copy and paste the the text from  
> Excel to a notepad

Why? When you paste something from Excel to a notepad, you lose all formatting. Definitely do not do that.

Save the file as CSV and import that. Ensure the file is closed when you import.

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [June 20, 2020, 3:56pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/9 "2020-06-20T15:56:23Z")

</div>

I belive it is a bug in Excel, here is waht the csv fiels shows in Notepad:  
304991-  
][1]

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2020, 3:58pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/10 "2020-06-20T15:58:05Z")

</div>

Why not just do this? Why do you need notepad in the first place?

![304986-annotation-2020-06-20-165723.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/1/431a76970d5d2795f8c7ef570539201c4e3a1c54.jpeg)

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [June 20, 2020, 4:08pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/11 "2020-06-20T16:08:43Z")

</div>

I did that, it gives me the same error so I belive it is a bug in Excel.

Here is how the files shows in notpad:

;X1;X2;X3  
Item;5;8;2  
Potion;3;5;7  
Player;3;6;9

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [June 20, 2020, 4:12pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/12 "2020-06-20T16:12:21Z")

</div>

I was able to get it to work with LiberOffice.  
but thank you for the help.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2020, 4:21pm UTC](https://forums.unrealengine.com/t/import-csv-to-datatabel-help/467027/13 "2020-06-20T16:21:32Z")

</div>

Super weird to see semicolons there. Glad to hear you got it to work!
