CSV Reader error: The row containing the table headers (row number 0) was not part of the table

Hello all,

I am having trouble reading a CSV file from a URL. Hoping someone can help.

File looks simple (see below sample rows)

Date, employees_present
2024-09-01, 56
2024-09-02, 51

  • I have a URL that has the location of this CSV file
  • I am feeding this URL to a flow variable
  • I convert the flow variable type to “Path” from the default type which was string
  • I then use this flow variable in the CSV reader node with the following configuration
  • –Read from: Custom/KNIME URL
  • –URL is populated with the flow variable that was earlier configured
  • –This configuration looks perfect and I can see Knime is pulling in the correct URL to the csv in the URL field

However when running it gives me an error that says: The row containing the table headers (row number 0) was not part of the table

I tried the below to rule out issues with the file structure:

  • Downloaded the same file by entering the same URL in Chrome. File was downloaded to downloads folder
  • Used CSV reader node to read the same file from downloads folder using “Local File System” as Read From option
    In this method where it is reading from local system, it works perfectly

Not sure what is wrong and why the same exact file will work from local folder but not from URL.

Kindly help

Hey there and welcome to the forum!

Is it possible to share some more information? I know you have described it fairly thoroughly, but I did some quick experiments using two .csv files i found on google:
This one works like a charm:
https://www.stats.govt.nz/assets/Uploads/Annual-enterprise-survey/Annual-enterprise-survey-2023-financial-year-provisional/Download-data/annual-enterprise-survey-2023-financial-year-provisional.csv

This one doesn’t work because it looks like despite the fact that the URL suggests a direct path to a .csv file, the content that gets pulled seems to be HTML:

So one theory is that something similar happens in your case…

1 Like