Hi Janneke If I'm not mistaking, the csv files are read-only in Qgis. So I guess it's not a bug
I just tested here and all I can do is to add a virtual field to the csv, but not actually write in the file. Cheers Stéphane Le lundi 29 mai 2017, Janneke van Dijk <[email protected]> a écrit : > Dear all, > > Using Qgis 2.18.9 on Windows (OSGeo4W64) I'm trying to import a .csv file > and adding a text field. This is what I do: > 1. add the .csv using add vector layer > 2. open attribute table then use the field calculator > 3. add text field, OK > 4. toggle editing, save edits when asked. > I then get the following error messages: > > Could not commit changes to layer test_fieldcalculator1 > > > Errors: ERROR: 1 new attribute(s) not added > > SUCCESS: 1 attribute value(s) changed. > > Provider errors: > > OGR error creating field txt: > > Feature 1 for attribute update not found. > > OGR error syncing to disk: > > > The capabilities of this layer show: > > Add Features, Delete Features, Change Attribute Values, Add Attributes, > Delete Attributes, Rename Attributes, Change Geometries, Curved Geometries > > which makes me think it should be possible to add attributes to this > layer. Is this a bug or am I missing something? If a bug, is it in OGR or > QGIS? > > > Thanks for any insight, > > Janneke > > > -- Stéphane Henriod CIM-Expert for GIS and Green Economy Statistics Национальный статистический комитет Кыргызской Республики Кыргыз Республикасынын Улуттук статистика комитети National Statistical Committee of the Kyrgyz Republic 374 Фрунзе ул. / Frunze str. 720033 Бишкек / Bishkek T +996 778 46 99 02 (KG) T +49 176 280 11 050 (DE) E [email protected] W http://www.stat.kg W3W: nightfall.into.bucket <https://map.what3words.com/nightfall.into.bucket> // запас.союз.дружный <https://map.what3words.com/запас.союз.дружный>
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
