[GIS] Why does QGIS not detect the CSV/DBF column headers

attribute-joinscsvqgis

I am trying to import a CSV or DBF into QGIS so I can perform a join on a shapefile. However, QGIS is not detecting the first row as header names. I know I've done similar joins before and there's never been a problem detecting column headers.

Best Answer

Turns out Open Office was adding the new row of column names (N1,C,20 | N2,C,13 | N3,C,4 | N4,N,7,2 etc.) because some of the existing column names were only numbers. The problem persisted even after I reformatted the column row as text. However, after adding text to those column names, (e.g. changing 2004 to year_2004) Open Office stopped automatically inserting the new column names.

Problem solved--don't use only numeric characters as field names.

Related Question