[Answered ]-Csv reader failing on new line without delimiter

2👍

The delimiters or newlines aren’t the problem – you’re counting incorrectly.

The first element of a list has the index 0. So it should be

report.year = line[0]
report.month = line[1]
# etc.

I’m guessing you’re running into a List index out of range exception on the last element (line[9]).

Leave a comment