I am having problems with the csv reader (KNIME 4.1.3 I believe). I have to read Norwegian climate data asc file i.e. text file of which the first six lines are metadata, the rest is payload. However, I try to read only the first six lines to put them a way in a metadata table but I seem to miss something as I get the following exception. Or it is a bug.
org.knime.base.node.io.filereader.FileReaderException: Too many data elements (line: 7 (Row6), source: 'file:/mnt/norge/1985-2014/rr_1985-2014_01.asc')
you have to use the limit rows option instead of the Scan Limit (which is used to analyze the file i.e to dertmine the column types etc.) like in the screenshot and you will get what you want The error is probably because the first six rows have only two columns and the seventh has got ~ 7000 and the reader ist not able to fill the first 6 rows with empty cols, but you could just tick the “Support short lines” option in the Settings tab. Instead of the csv Reader you could use the File Reader which offers you some more advanced option or you could use the new CSV Reader which comes with the 4.2. release next week.