<?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: clone_items() fails with timeout error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-fails-with-timeout-error/m-p/1576397#M11068</link>
    <description>&lt;P&gt;Hey Dana,&lt;/P&gt;&lt;P&gt;I took a look and saw that a bug (&lt;SPAN&gt;&lt;A href="https://support.esri.com/en-us/bug/the-cloneitems-method-in-arcgis-api-for-python-fails-to-bug-000120207" target="_self"&gt;BUG-000120207&lt;/A&gt;)&lt;/SPAN&gt; had been logged a while ago for this that unfortunately had to be closed as this is a known limit with the ArcGIS API for Python.&lt;/P&gt;&lt;P&gt;As a workaround I suspect that an empty layer with matching schema would need to be created, and then data appended in chunks to try get around the time outs.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 14:28:11 GMT</pubDate>
    <dc:creator>David_McRitchie</dc:creator>
    <dc:date>2025-01-16T14:28:11Z</dc:date>
    <item>
      <title>clone_items() fails with timeout error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-fails-with-timeout-error/m-p/1576257#M11067</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have an ArcGIS Online Hosted Feature Layer, its size is 255 MB, it has attachments with size: 12.53 GB. It's failing to clone (clone_items) due to time out after about 15-20 minutes.&lt;/P&gt;&lt;P&gt;Smaller Feature Layers clone without issues.&lt;/P&gt;&lt;P&gt;Is there a limit to the size of the items we can clone? If there is, is there a way to work around this?&lt;/P&gt;&lt;P&gt;Sample script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

gis = GIS("https://arcgis.com", "username", "password", expiration=9999)
layer = gis.content.get("featureserviceid")
gis.content.clone_items([layer], "Test Folder")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error I'm getting:&lt;/P&gt;&lt;P&gt;Your request has timed out. : (Error Code: 504)', &amp;lt;Item title:"item_title" type:Feature Layer Collection owner:username&amp;gt;)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\_impl\common\_clone.py", line 4270, in clone&lt;BR /&gt;raise _ItemCreateException(&lt;BR /&gt;arcgis._impl.common._clone._ItemCreateException: ('Failed to create Feature Service service_name: Your request has timed out. (Error Code: 504)', &amp;lt;Item title:"item_title" type:Feature Layer Collection owner:username&amp;gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 06:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-fails-with-timeout-error/m-p/1576257#M11067</guid>
      <dc:creator>DanaAbumourhMAG</dc:creator>
      <dc:date>2025-01-16T06:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items() fails with timeout error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-fails-with-timeout-error/m-p/1576397#M11068</link>
      <description>&lt;P&gt;Hey Dana,&lt;/P&gt;&lt;P&gt;I took a look and saw that a bug (&lt;SPAN&gt;&lt;A href="https://support.esri.com/en-us/bug/the-cloneitems-method-in-arcgis-api-for-python-fails-to-bug-000120207" target="_self"&gt;BUG-000120207&lt;/A&gt;)&lt;/SPAN&gt; had been logged a while ago for this that unfortunately had to be closed as this is a known limit with the ArcGIS API for Python.&lt;/P&gt;&lt;P&gt;As a workaround I suspect that an empty layer with matching schema would need to be created, and then data appended in chunks to try get around the time outs.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 14:28:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-fails-with-timeout-error/m-p/1576397#M11068</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2025-01-16T14:28:11Z</dc:date>
    </item>
  </channel>
</rss>

