Data contains 1 columns, expected 27

cloudyrobert
Kilo Guru

I'm doing a data import from a CSV file on an FTP server.   The CSV is delimited using semicolons rather than commas, but is not otherwise out of the ordinary.   When I load the file, I get an error, "data contains 1 columns, expected 27".   The transforms run as they should, and the data comes into the system.   Why am I getting this error?

1 ACCEPTED SOLUTION

Maybe try cutting that last row off and see if the error stops.   If it does, just ignore the error.


View solution in original post

13 REPLIES 13

Guess that's not it; still got the error.


I loaded from the "Load Data" UI page rather than the data source, so the commas were causing issues without the delimited specified as a semicolon.   Once I started loading from the data source, I was able to determine that this last line is, in fact, the problem...


bernyalvarado
Mega Sage

Hi Relliot, have you checked the format field of your data source? Is it CSV?



Thanks,


Berny


Hi Berny--yes, CSV.


Victor Ruiz
Tera Guru

I ran into the same problem with an import from Altiris...the quick fix was to open the file in Excel, re-save the file and retry the import.   The only difference I found after re-saving the file was the date column had changed.