Error message "failed to read data" from csv even it is working fine

The problem you have is that Hugo does not support CSV files in the /data folder. So, if you remove that file, the ERROR will go away.

We do, however, support CSV files via the getCSV function:

But you need to store the CSV file in some other folder (not /data).

2 Likes