1

I have a shapefile with a relatively extensive attribute table. I extended it by adding geometry data ("Vector > Geometry tools > Export/Add geometry columns") and now I cannot save the layer in a new file. When I try to save it as an ESRI shapefile, I get a message: Export to vector file failed. Error: creation of field T4_3FTC failed (OGR error: Can't create field T4_3FTC in Shape DBF file, reason unknown.)

When I try to save it as a Geopackage file, I get a message: Export to vector file failed. Error: creation of field fid failed (OGR error: Wrong field type for fid)

When I try to save it as a CSV file, the program crashes and I lose my work (tried at least three times).

Apart from that, the file works perfectly, the attribute table isn't corrupted in any way. What should I do to fix the issue?

Edit: the program finally generated a CSV file after around 5 minutes of being unresponsive. Still no luck with other formats.

  • 1
    Might sound counter-productive but perhaps re-save the shapefile as a new shapefile, then export the geometry columns and re-save it again? – Joseph Jun 27 '17 at 9:38
  • How many fields do you have in the .dbf file before you add new columns for the coordinates? Could you prepare a minimal sample for us with only one feature which has as many attributes and of the same kind that you have in your data? – user30184 Jun 27 '17 at 14:11
  • @Joseph That's what I tried to do - saving after adding geometry columns fails as described. – Jurek Gozdek Jun 28 '17 at 13:08
  • @user30184 There are 790 fields (columns) in the table. Please find the complete table before adding geometry columns under the following link: goo.gl/xRzJ9m – Jurek Gozdek Jun 28 '17 at 13:11
  • @JurekGozdek - Can't replicate your issue, this worked fine for me using QGIS 2.18.2 for Win7 64-bit. Which version and for what platform are you using? – Joseph Jun 28 '17 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.