<?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 Does clone_items() have a size limit for hosted feature layers? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1101196#M6679</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a script for cloning hosted feature services from one portal to another using the clone_items method. The script works as expected with smaller feature services. However when using large feature services, I get this error:&lt;/P&gt;&lt;P&gt;('Failed to create Feature Service MyService: list index out of range', &amp;lt;Item title:"MyService" type:Feature Layer Collection owner:portaladmin&amp;gt;)&lt;/P&gt;&lt;P&gt;It seems as if there is a limit on how large a feature service that can be cloned. I did some experiments with a feature class with app. 1100 polygons. I limited the number features with a definition query in the map, shared it with Portal A and cloned to Portal B. Repeating this process, increasing the number of features, I started getting the error at app. 900 features. But I don't know if it is the actual number or (more likely) a certain size that triggers the error.&lt;/P&gt;&lt;P&gt;I can't find anything in the documentation.&lt;/P&gt;&lt;P&gt;Does any know of a size limitation of clone_items or have I missed something?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 13:16:34 GMT</pubDate>
    <dc:creator>CarstenB_orsted</dc:creator>
    <dc:date>2021-09-23T13:16:34Z</dc:date>
    <item>
      <title>Does clone_items() have a size limit for hosted feature layers?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1101196#M6679</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a script for cloning hosted feature services from one portal to another using the clone_items method. The script works as expected with smaller feature services. However when using large feature services, I get this error:&lt;/P&gt;&lt;P&gt;('Failed to create Feature Service MyService: list index out of range', &amp;lt;Item title:"MyService" type:Feature Layer Collection owner:portaladmin&amp;gt;)&lt;/P&gt;&lt;P&gt;It seems as if there is a limit on how large a feature service that can be cloned. I did some experiments with a feature class with app. 1100 polygons. I limited the number features with a definition query in the map, shared it with Portal A and cloned to Portal B. Repeating this process, increasing the number of features, I started getting the error at app. 900 features. But I don't know if it is the actual number or (more likely) a certain size that triggers the error.&lt;/P&gt;&lt;P&gt;I can't find anything in the documentation.&lt;/P&gt;&lt;P&gt;Does any know of a size limitation of clone_items or have I missed something?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1101196#M6679</guid>
      <dc:creator>CarstenB_orsted</dc:creator>
      <dc:date>2021-09-23T13:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Does clone_items() have a size limit for hosted feature layers?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1102413#M6682</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/475927"&gt;@CarstenB_orsted&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I had a quick look and I couldn't find anything regarding the item cloning size limits either.&lt;/P&gt;&lt;P&gt;You can contact the ArcGIS API for Python support to find out:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/Products/Developers/scripting-and-automation/arcgis-api-for-python/" target="_blank"&gt;https://support.esri.com/en/Products/Developers/scripting-and-automation/arcgis-api-for-python/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 03:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1102413#M6682</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-09-28T03:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Does clone_items() have a size limit for hosted feature layers?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1102460#M6683</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! I already contacted support yesterday, and they are investigating the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 08:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1102460#M6683</guid>
      <dc:creator>CarstenB_orsted</dc:creator>
      <dc:date>2021-09-28T08:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Does clone_items() have a size limit for hosted feature layers?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1102497#M6684</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just heard from Esri Support. There is already logged a bug on the issue.&lt;/P&gt;&lt;P&gt;Bug Number: BUG-000122287&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the bug has status "Closed" and&amp;nbsp;"Not in production plan" and the advice is to use workarounds as exporting or duplicating the schema and appending.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 11:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1102497#M6684</guid>
      <dc:creator>CarstenB_orsted</dc:creator>
      <dc:date>2021-09-28T11:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Does clone_items() have a size limit for hosted feature layers?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1103367#M6692</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/475927"&gt;@CarstenB_orsted&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I checked the log. It's recommending a workaround which reducing the number of vertices in features using Generalize tool in ArcGIS Pro. This is quite helpful when you don't have a lot of feature classes already published.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 04:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/does-clone-items-have-a-size-limit-for-hosted/m-p/1103367#M6692</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-09-30T04:01:40Z</dc:date>
    </item>
  </channel>
</rss>

