<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Thanks, Stéphane.<br>
      That at least confirms it - the capabilities are then a bit
      misleading, if the layer is not meant to be editable.<br>
      <br>
      regards,<br>
      Janneke<br>
      <br>
      On 31-May-17 12:31, Stéphane Henriod wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAK6pVBWos4Ef3XowAtD63mhTnjXwJwpAxDtT_9D2Girov2c1Xg@mail.gmail.com">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      Hi Janneke
      <div><br>
      </div>
      <div>If I'm not mistaking, the csv files are read-only in Qgis. So
        I guess it's not a bug</div>
      <div><br>
      </div>
      <div>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.</div>
      <div><br>
      </div>
      <div>Cheers</div>
      <div><br>
      </div>
      <div>Stéphane</div>
      <div><br>
        <br>
        Le lundi 29 mai 2017, Janneke van Dijk <<a
          href="mailto:janneke.qgis@gmail.com" moz-do-not-send="true">janneke.qgis@gmail.com</a>>
        a écrit :<br>
        <blockquote class="gmail_quote">
          <div> Dear all,<br>
            <br>
            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:<br>
            1. add the .csv using add vector layer<br>
            2. open attribute table then use the field calculator<br>
            3. add text field, OK<br>
            4. toggle editing, save edits when asked.<br>
            I then get the following error messages:<br>
            <br>
            Could not commit changes to layer test_fieldcalculator1
            <p><br>
            </p>
            <p>Errors: ERROR: 1 new attribute(s) not added</p>
            <p> SUCCESS: 1 attribute value(s) changed.</p>
            <p> </p>
            <p> Provider errors:</p>
            <p> OGR error creating field txt: </p>
            <p> Feature 1 for attribute update not found.</p>
            <p> OGR error syncing to disk: <br>
            </p>
            <p><br>
            </p>
            <p>The c<span>apabilities of this layer show:<br>
              </span></p>
            <p><span>Add Features, Delete Features, Change Attribute
                Values, Add Attributes, Delete Attributes, Rename
                Attributes, Change Geometries, Curved Geometries</span></p>
            <p><span>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?<br>
              </span></p>
            <p><span><br>
              </span></p>
            <p><span>Thanks for any insight,</span></p>
            <p><span>Janneke<br>
              </span></p>
            <p><br>
            </p>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      -- <br>
      <div dir="ltr">
        <div>Stéphane Henriod</div>
        <div>CIM-Expert for GIS and Green Economy Statistics</div>
        <div><br>
        </div>
        <div>Национальный статистический комитет Кыргызской Республики</div>
        <div>Кыргыз Республикасынын Улуттук статистика комитети</div>
        <div>National Statistical Committee of the Kyrgyz Republic</div>
        <div><br>
        </div>
        <div>374 Фрунзе ул. / Frunze str.</div>
        <div>720033 Бишкек / Bishkek</div>
        <div><br>
        </div>
        <div>T   +996 778 46 99 02 (KG)</div>
        <div>T   +49 176 280 11 050 (DE)</div>
        <div>E    <a href="mailto:s@henriod.info" target="_blank"
            moz-do-not-send="true">s@henriod.info</a></div>
        <div>W   <a href="http://www.stat.kg" target="_blank"
            moz-do-not-send="true">http://www.stat.kg</a></div>
        <div>W3W: <a
            href="https://map.what3words.com/nightfall.into.bucket"
            target="_blank" moz-do-not-send="true">nightfall.into.bucket</a>
           //  <a
href="https://map.what3words.com/%D0%B7%D0%B0%D0%BF%D0%B0%D1%81.%D1%81%D0%BE%D1%8E%D0%B7.%D0%B4%D1%80%D1%83%D0%B6%D0%BD%D1%8B%D0%B9"
            target="_blank" moz-do-not-send="true">запас.союз.дружный</a></div>
      </div>
      <br>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>