Import CSV to DataTabel Help

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?

Here’s a quick tut:

Data in the file:

304974-csv.jpg

Struct for the DT:

304975-struct.jpg

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

Data in the DT:

304978-dt.jpg

1 Like

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

304954-0015.png

Do you know way I get this error?

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.

1 Like

A csv opened in a notepad would look like this:

304985-annotation-2020-06-20-163748.jpg

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

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

304960-0019.png

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.

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

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

304986-annotation-2020-06-20-165723.jpg

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

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

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