<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Marian,<br>
    I advise you, for the future, to avoid sending e-mail messages to a
    mailing list user personal e-mail address (unless requested) and
    instead please always prefer to send the message/replay to the
    mailing list e-mail address. Moreover, better to avoid attach big
    files to an e-mail message (better to specify a link to an online
    resource).<br>
    <br>
    Looking at the provided ESRI Shapefile layer, it seems to me the
    issue is due to the fact that in addition to the typical ESRI
    Shapefile files (.shp, .shx, .dbf, .prj, ...) are also present the
    non standard .idm and .ind files which contain the "attribute
    indexes as a mapinfo format index" [1].<br>
    <br>
    If you remove such .idm and and .ind files, then the issue will not
    occur with your ESRI Shapefile layer.<br>
    <br>
    What I suppose is that while QGIS, using the GDAL/OGR library, can
    use such non standard .idm and .ind files for attribute indexes, it
    (or the GDAL/OGR library) fails to properly update such attribute
    indexes files when a new feature is added to the layer. You can
    check this just looking at such files modification time in you file
    system when a new feature is added to the layer: such files are not
    modified.<br>
    <br>
    Best regards.<br>
    <br>
    Andrea Giudiceandrea<br>
    <br>
    <br>
    <br>
    [1]
<a class="moz-txt-link-freetext" href="https://gdal.org/drivers/vector/shapefile.html#spatial-and-attribute-indexing">https://gdal.org/drivers/vector/shapefile.html#spatial-and-attribute-indexing</a><br>
    <div class="moz-cite-prefix">Il 22/07/2022 21:54, Tudorache, Marian
      ha scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:YQXPR01MB38317C1AF7CF3A710A13D95FE6909@YQXPR01MB3831.CANPRD01.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
            style="font-size:11.0pt;mso-fareast-language:EN-US">Hi
            Andrea,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;mso-fareast-language:EN-US">Thank
            you for your answer.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;mso-fareast-language:EN-US">I attach
            the an archive with the shapefile in question.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;mso-fareast-language:EN-US">I also
            attached a video to see what is going on.<o:p></o:p></span></p>
      </div>
    </blockquote>
  </body>
</html>