Closed jwperez closed 6 years ago
If you get that error then it seems the initializer in this line is failing. That should only be the case if the number of keys differ from the number of values. As the keys here is the header array I'm guessing CSVImporter finds a line with differing number of columns than the specified header column.
If you can provide the CSV file or a portion of it that fails then I can help in more detail.
You might also try validating your CSV file on a service like http://csvlint.io. CSVImporter currently only supports correctly formatted files as of RFC4180. Resiliency against some of the more common malformatting issues should be added over time for sure, but only time can tell which those are. Maybe your case is one of them, but we can't know until you post your failing example CSV files and others report similar issues.
I hope this helps.
@jwperez Could you find the issue?
It would be great if you could provide an example file so I can solve this potential bug in the library.
Closing this as not enough information was provided to find and fix the issue, if there was one.
Morning,
I'm receiving the following error. Warning: Couldn't structurize line.
I log each record and it looks fine. Any idea on what the issue could be?
Thanks,
Jonathan