<div><p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px"><span style="background-color:rgb(255,255,255)">Can anyone confirm me this error?</span></p><p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px">
<span style="background-color:rgb(255,255,255)">I already created a ticket for it: <a href="http://hub.qgis.org/issues/6735">http://hub.qgis.org/issues/6735</a></span></p><p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px">
<span style="background-color:rgb(255,255,255)"><br></span></p><p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px"><span style="background-color:rgb(255,255,255)">I'm using, QGIS 1.8 6416f38, in a Windows Vista 32bit Machine. Changes in table attribute causes "Invalid Field Index" error when trying to save.</span></p>
<p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px"><span style="background-color:rgb(255,255,255)">The error occurs doing the following steps:<br>- Open editing;<br>- Create new field; # Ups... not the field type I wanted<br>
- DO NOT SAVE;<br>- Erase the same field;<br>- Save edition.</span></p><p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px"><span style="background-color:rgb(255,255,255)">QGIS is enable to save the changes trowing the following error:</span></p>
<pre style="margin-right:1em;margin-left:1.6em;padding:2px 2px 2px 0px;border:1px solid rgb(218,218,218);width:auto;overflow-x:auto;overflow-y:hidden;color:rgb(48,48,48);font-size:12px"><span style="background-color:rgb(255,255,255)">Could not commit changes to layer teste2

  Errors: ERROR: 1 attribute(s) not deleted.
  SUCCESS: 1 attribute(s) added.
  SUCCESS: 1 attribute value(s) changed.

  Provider errors:
  OGR error deleting field 1: Invalid field index
</span></pre><p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px"><span style="background-color:rgb(255,255,255)">The error only occurs when deleting a recent created fields.</span></p>
<p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px"><span style="background-color:rgb(255,255,255)">After that, the shapefile index seems to be messed up and data edited in new fields may keep throwing errors, or even be lost.</span></p>
<p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px"><span style="background-color:rgb(255,255,255)">I haven't tried in a Linux machine.</span></p><p style="color:rgb(48,48,48);font-family:Verdana,Tahoma,Arial,sans-serif;font-size:12px">
<span style="background-color:rgb(255,255,255)">WORKAROUND: Always save editing immediately after creating a new field.</span></p></div>