<div dir="ltr"><div><div><div>Hi,<br></div>John, this means there's already a field named "AREA" in the data you downolad (and this needs to be fixed - see <a href="https://github.com/qgis/QGIS-Documentation/issues/457">https://github.com/qgis/QGIS-Documentation/issues/457</a>).<br>To bypass this issue, do the exercise with a new field named AREA2.<br><br></div>Regards,<br></div>DelazJ<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-14 23:54 GMT+01:00 John Charde <span dir="ltr"><<a href="mailto:johnchardeiv@gmail.com" target="_blank">johnchardeiv@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I am following the QGIS training guide (complete with datasets it had me download) and am working with vector classifications. After the guide prompted me create a nominal classification of the "landuse" layer, it went into ratio classification. I added an AREA column to the attribute table, and used the attribute calculator to find the areas of all attributes (with the "type" box set as "decimal number"). I changed the classification style to "Graduated," changed the "column" to AREA, created my own color ramp and classified the data. after I clicked "OK" through the prompts to get back to the main screen, I tried to save the style and toggle off editing, and I got an error stating the following:</div><div><br></div><div><p style="margin:0px">Could not commit changes to layer landuse</p>
<p style="margin:0px"><br></p>
<p style="margin:0px">Errors: ERROR: 1 new attribute(s) not added</p>
<p style="margin:0px">  ERROR: 55 attribute value change(s) not applied.</p>
<p style="margin:0px">  </p>
<p style="margin:0px">  Provider errors:</p>
<p style="margin:0px">      SQLite error: duplicate column name: AREA</p>
<p style="margin:0px">    SQL: ALTER TABLE "landuse" ADD COLUMN "AREA" FLOAT</p>
<p style="margin:0px">      SQLite error: near "WHERE": syntax error</p>
<p style="margin:0px">    SQL: </p>
<p style="margin:0px"> </p><p style="margin:0px">I'm not sure what it means and what I am supposed to do to rectify the situation. Could anyone help me? I greatly appreciate it!</p><p style="margin:0px"><br></p><p style="margin:0px">Best,</p><p style="margin:0px"><br></p><p style="margin:0px">      Jack C. (new QGIS user)</p></div></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>