1
- I have a 16MB CSV file with 50,000 lines that I want to import into my database.
- I go to the PHPMyAdmin-Interface, choose IMPORT and set the correct options.
- The import fails with the error
Invalid field count in CSV input on line 24,333
. - When I look into the CSV file via Notepad++ and turn on the Option
View -> Show Symbols -> Show all Characters
everything in this line looks absolutely okay, means like exactly the same as in the lines before that were imported correctly.
How can I find the problem that the import is complaining about?
I cannot provide a sample of the data because it contains sensitive information.
First of all thank you very much for your answer, i will look over the file. Is there a way to tell The database to ignore this error and import the line anyways and keep on going after that? I think of maybe doing it like that. – user3877230 – 2015-07-17T12:14:41.397
@user3877230 Ignoring the error could very well lead to data loss, as the records that do no match would be dropped, and you may end up with one or more partial records that will be difficult to find after loading. The field length problem will be much easier to address prior to loading than after. – vallismortis – 2015-07-17T12:19:37.240
Okay, thank you very much for your advice, i will look over the file ;) – user3877230 – 2015-07-17T12:31:38.890