I have some data prepared in Excel 2016 for export into CSV with the help of VBA:
workbookToExport.SaveAs Filename:=CSVFilename, FileFormat:=xlCSV, local:=True
Then I take the CSV and I use the Table Data Import Wizard of MySQL Workbench. Here I get
Error
Unhandled exception: list index out of range
Check the log for more details.
This is the sample data, which leads to the above error:
id;name;information;reference;limit;release
26;Lorem ;"Lorem ""ipsum"" Lorem ipsum.
Lorem ipsum.
Lorem „Ipsum“ lorem";Lorem ipsum;2;10000
Here you can see, that the string itself is in quotes "
, an escape quote is used ""
and the data goes over multiple new lines
.
If I remove the new lines, the import does work. Is there a possibility to preserve the new lines? How?
I read that you can preserve new lines if you quote your text. But that does not work for my case.
What can I do?
PS: The encoding of the CSV is in latin 1 (iso-8859-1) / ANSI.