<?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 Deleting features causes a 504 timeout error in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/deleting-features-causes-a-504-timeout-error/m-p/1115260#M42887</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am deleting features (delete_features function) from a hosted features service in chunks. It used to work with a chunk size of 500, but now I get the 504 timeout error unless I go down to the cunks of 10.&lt;/P&gt;&lt;PRE&gt;chunks = [listofoids[x:x + servicemaxitem] for x in range(0, len(listofoids), servicemaxitem)]"&lt;BR /&gt;for index, chunk in enumerate(chunks):&lt;BR /&gt;    result = layer_to_update.delete_features(deletes = str(chunk).strip('[]'))&lt;/PRE&gt;&lt;P&gt;Does anybody now what happend and how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message (your request has timed out):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OlgaKoblet_0-1636470001911.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27067i66833C17E658AFBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OlgaKoblet_0-1636470001911.png" alt="OlgaKoblet_0-1636470001911.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 15:01:56 GMT</pubDate>
    <dc:creator>OlgaKoblet</dc:creator>
    <dc:date>2021-11-09T15:01:56Z</dc:date>
    <item>
      <title>Deleting features causes a 504 timeout error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/deleting-features-causes-a-504-timeout-error/m-p/1115260#M42887</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am deleting features (delete_features function) from a hosted features service in chunks. It used to work with a chunk size of 500, but now I get the 504 timeout error unless I go down to the cunks of 10.&lt;/P&gt;&lt;PRE&gt;chunks = [listofoids[x:x + servicemaxitem] for x in range(0, len(listofoids), servicemaxitem)]"&lt;BR /&gt;for index, chunk in enumerate(chunks):&lt;BR /&gt;    result = layer_to_update.delete_features(deletes = str(chunk).strip('[]'))&lt;/PRE&gt;&lt;P&gt;Does anybody now what happend and how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message (your request has timed out):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OlgaKoblet_0-1636470001911.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27067i66833C17E658AFBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OlgaKoblet_0-1636470001911.png" alt="OlgaKoblet_0-1636470001911.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 15:01:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/deleting-features-causes-a-504-timeout-error/m-p/1115260#M42887</guid>
      <dc:creator>OlgaKoblet</dc:creator>
      <dc:date>2021-11-09T15:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting features causes a 504 timeout error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/deleting-features-causes-a-504-timeout-error/m-p/1137679#M43970</link>
      <description>&lt;P&gt;I don't have a fix but can tell you that you're not alone.&amp;nbsp; Ever since the last AGOL upgrade I've been experiencing the same thing on code that has worked great for more than a year.&amp;nbsp; It also seems like notebooks take longer to open than they used to.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 22:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/deleting-features-causes-a-504-timeout-error/m-p/1137679#M43970</guid>
      <dc:creator>EdAmrhein1</dc:creator>
      <dc:date>2022-01-26T22:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting features causes a 504 timeout error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/deleting-features-causes-a-504-timeout-error/m-p/1155468#M44959</link>
      <description>&lt;P&gt;Deleting features is now (since when?) performed through edit_features function&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;delete_result&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;ports_flayer&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;edit_features&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;deletes&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;str&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Redlands_objid&lt;/SPAN&gt;&lt;SPAN class=""&gt;))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/editing-features/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/editing-features/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 17:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/deleting-features-causes-a-504-timeout-error/m-p/1155468#M44959</guid>
      <dc:creator>OlgaKoblet</dc:creator>
      <dc:date>2022-03-19T17:36:28Z</dc:date>
    </item>
  </channel>
</rss>

