I am trying to join a .csv file with a .shp file in QGIS but QGIS is unable to read the data in my .csv file as it indicated that the variables are string of length and precision 0. As a result, I am unable to use the method of create a new column of numeric characters and the option to add a new column or to use the field calculator is disable in my attribute table.

  • 5
    A sample of your data, the exact error message and Qgis Version will go a long way to helping you get an Answer. Please edit you question to include these. Nov 7, 2014 at 1:57
  • What did you use to create the CSV file? What platform are you on? If you're on Excel in OS X, try "Windows comma-separated" as a CSV format.
    – Simbamangu
    Nov 7, 2014 at 3:52

1 Answer 1


The solution may be to create a .csvt file, in the same folder as your .csv file, where you just write the data type. For instance:

"String", "String", "String", "String", "String", "Integer"

Not the answer you're looking for? Browse other questions tagged or ask your own question.