<?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: layer.edit_features hangs in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/layer-edit-features-hangs/m-p/1640660#M11557</link>
    <description>&lt;P&gt;I never really figured this out but was able to move on with my project by using the REST API instead (see this &lt;A href="https://community.esri.com/t5/python-questions/looking-for-a-code-example-of-using-python-rest/td-p/1639985" target="_self"&gt;post&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Aug 2025 12:26:21 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2025-08-09T12:26:21Z</dc:date>
    <item>
      <title>layer.edit_features hangs</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/layer-edit-features-hangs/m-p/1639907#M11553</link>
      <description>&lt;P&gt;I'm writing a python script to update a public feature class on my enterprise portal.&amp;nbsp; The edit_features API call hangs then times out with this message&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;*** requests.exceptions.ConnectionError: A connection error has occurred: HTTPSConnectionPool(host='gis.mortonarb.org', port=443): Max retries exceeded with url: /server/rest/services/Hosted/service_d8b3fda9400f4053aa5c90c400d6c07d/FeatureServer/0/applyEdits (Caused by ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I can edit the feature class from the item's data tab and also directly in the REST service (anonymously), but it fails using the API.&amp;nbsp; The API works for reading the layer.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;CRTI_URL = 'https://gis.mortonarb.org/server/rest/services/Hosted/service_d8b3fda9400f4053aa5c90c400d6c07d/FeatureServer/0'
CRTI_FEATURE_LAYER = gis.content.search(CRTI_URL)[0].layers[0]
CRTI_FEATURE_LAYER.edit_features(updates=[{"objectid": 2, "is_copied": 1}])&lt;/LI-CODE&gt;&lt;P&gt;Any ideas on what might be the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 04:58:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/layer-edit-features-hangs/m-p/1639907#M11553</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2025-08-07T04:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: layer.edit_features hangs</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/layer-edit-features-hangs/m-p/1640660#M11557</link>
      <description>&lt;P&gt;I never really figured this out but was able to move on with my project by using the REST API instead (see this &lt;A href="https://community.esri.com/t5/python-questions/looking-for-a-code-example-of-using-python-rest/td-p/1639985" target="_self"&gt;post&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2025 12:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/layer-edit-features-hangs/m-p/1640660#M11557</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2025-08-09T12:26:21Z</dc:date>
    </item>
  </channel>
</rss>

