<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Element Feature Layer locked for overwriting ArcGIS Online. in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1301776#M52999</link>
    <description>&lt;P&gt;Hi there, I apologize that you are running into this issue with overwrite. If you could please share more details on your workflow. It would be great help for trying to resolve this issue that you are seeing. From you post, I see that you mentioned this occurs after multiple overwrites, is this correct? We just made changes to overwrite for the most recent release and want to make sure that this isn't a new issue for you. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 21:58:12 GMT</pubDate>
    <dc:creator>MaxwellDebellaESRI</dc:creator>
    <dc:date>2023-06-21T21:58:12Z</dc:date>
    <item>
      <title>Element Feature Layer locked for overwriting ArcGIS Online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1301619#M52987</link>
      <description>&lt;P&gt;Hi everyone. I am trying to update/overwrite a hosted feature layer in ArcGIS Online through Python using 'manager.overwrite' but it doesn't work, I even tried to overwrite it manually with the source '.csv' file without success, apparently the element has some kind of error or lock that prevents to perform this action. It also does not work if I run the task several times.&lt;/P&gt;&lt;P&gt;The errors are shown below:&lt;/P&gt;&lt;P&gt;Note 1: The element works properly for months, after a while this happens. This is the second time it happens.&lt;/P&gt;&lt;P&gt;Note 2: It also does not work if I enable the edit option in advanced options of the element.&lt;/P&gt;&lt;P&gt;Note 3: This element also has no pending replicas.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_1-1687361382526.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73797i12829478A111CC75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_1-1687361382526.png" alt="CommunityMapsEsriColombia_1-1687361382526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_0-1687361287987.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73795iE1C6E660A5E9A766/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_0-1687361287987.png" alt="CommunityMapsEsriColombia_0-1687361287987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_2-1687362248926.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73804i2DE1B3E5BE9ADA48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_2-1687362248926.png" alt="CommunityMapsEsriColombia_2-1687362248926.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 16:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1301619#M52987</guid>
      <dc:creator>CommunityMapsEsriColombia</dc:creator>
      <dc:date>2023-06-21T16:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Element Feature Layer locked for overwriting ArcGIS Online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1301776#M52999</link>
      <description>&lt;P&gt;Hi there, I apologize that you are running into this issue with overwrite. If you could please share more details on your workflow. It would be great help for trying to resolve this issue that you are seeing. From you post, I see that you mentioned this occurs after multiple overwrites, is this correct? We just made changes to overwrite for the most recent release and want to make sure that this isn't a new issue for you. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 21:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1301776#M52999</guid>
      <dc:creator>MaxwellDebellaESRI</dc:creator>
      <dc:date>2023-06-21T21:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Element Feature Layer locked for overwriting ArcGIS Online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1586124#M63656</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/645811"&gt;@MaxwellDebellaESRI&lt;/a&gt;&amp;nbsp;, yes, it apparently occurs after several overwrites. Below is the workflow we follow and the errors that have appeared.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;This service has been overwritten automatically every 6 hours for approximately a year using a script. We process a CSV file, point to the item, and overwrite it using &lt;STRONG&gt;collection.manager.overwrite(csv)&lt;/STRONG&gt;, as shown in the image.&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_0-1739824223557.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125573i0C0E7DB5979C260A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_0-1739824223557.png" alt="CommunityMapsEsriColombia_0-1739824223557.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Currently, when trying to overwrite the service, the following error appears:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_1-1739824239005.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125574i7BE7FF8E7BB70578/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_1-1739824239005.png" alt="CommunityMapsEsriColombia_1-1739824239005.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;We attempted to overwrite it manually from ArcGIS Online by directly uploading the CSV file, but the process keeps loading indefinitely without completing the action.&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_2-1739824256400.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125575i7E2A787070D76C04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_2-1739824256400.png" alt="CommunityMapsEsriColombia_2-1739824256400.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When reviewing the attribute table in ArcGIS Online, we observed the following:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_3-1739824266024.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125576iCBBFA40AB5AEEC79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_3-1739824266024.png" alt="CommunityMapsEsriColombia_3-1739824266024.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;We also tried using the &lt;STRONG&gt;Append&lt;/STRONG&gt; tool by spatializing the table and attempting to add it to the existing layer, but we got the following result:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_4-1739824276280.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125577i4AB6901408C9BA90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_4-1739824276280.png" alt="CommunityMapsEsriColombia_4-1739824276280.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 17 Feb 2025 20:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1586124#M63656</guid>
      <dc:creator>CommunityMapsEsriColombia</dc:creator>
      <dc:date>2025-02-17T20:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Element Feature Layer locked for overwriting ArcGIS Online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1587250#M63711</link>
      <description>&lt;P&gt;Hello everyone, it looks like we've found a solution.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We updated the &lt;/SPAN&gt;&lt;SPAN&gt;"description"&lt;/SPAN&gt;&lt;SPAN&gt; parameter with &lt;/SPAN&gt;&lt;SPAN&gt;"Shape Index"&lt;/SPAN&gt;&lt;SPAN&gt; in the table's JSON, specifically in the spatial index section, and it is now working correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Before:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_0-1740000013945.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125835iDC7DE1566AB03B4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_0-1740000013945.png" alt="CommunityMapsEsriColombia_0-1740000013945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunityMapsEsriColombia_1-1740000031822.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125836iBF8EB37010E28068/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CommunityMapsEsriColombia_1-1740000031822.png" alt="CommunityMapsEsriColombia_1-1740000031822.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the code we used for the solution:&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;from arcgis.features import FeatureLayer&lt;BR /&gt;import pandas as pd&lt;/P&gt;&lt;P&gt;# URL del servicio de entidades&lt;BR /&gt;service_url = url&lt;/P&gt;&lt;P&gt;# Conectar a ArcGIS Online o Enterprise (en este caso, sin autenticación)&lt;BR /&gt;gis = GIS("&lt;A href="https://www.arcgis.com" target="_blank" rel="noopener"&gt;https://www.arcgis.com&lt;/A&gt;", user, password)&lt;/P&gt;&lt;P&gt;# Crear un objeto FeatureLayer&lt;BR /&gt;layer = FeatureLayer(service_url)&lt;/P&gt;&lt;P&gt;description = layer.properties["indexes"]&lt;BR /&gt;description[1]["description"] = 'Shape Index'&lt;/P&gt;&lt;P&gt;print(layer.properties["indexes"][1])&lt;/P&gt;&lt;P&gt;layer.manager.update_definition({"indexes": description })&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 21:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/element-feature-layer-locked-for-overwriting/m-p/1587250#M63711</guid>
      <dc:creator>CommunityMapsEsriColombia</dc:creator>
      <dc:date>2025-02-19T21:24:38Z</dc:date>
    </item>
  </channel>
</rss>

