<?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 Is there a Workaround for Cloning Content with &amp;gt;1,000 Records from AGOL to Portal Using  &amp;quot;Clone_Items&amp;quot; API Module? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-workaround-for-cloning-content-with-gt/m-p/880650#M5097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been successful migrating content with &amp;lt;1,000 Records using the 4-liner mentioned &lt;A _jive_internal="true" href="https://community.esri.com/thread/212663-can-you-use-cloneitems-to-move-items-from-one-portal-to-another"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I get the "_ItemCreateException: ('Failed to create Feature Service..." error when attempting to "clone_content" for a layer with ~13,000 records. When I set&amp;nbsp;copy_data=False I get it to Portal with no records, so I'm assuming its the record count? I am using the "content.clone_items" api module..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Here is a snippet of my code (successful):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;source_Hazs = GIS("https://dtsc.maps.arcgis.com",os.environ['AGOL_Username'],os.environ['AGOL_Password'])&lt;BR /&gt;target_Hazs = GIS("https://maps.dtsc.ca.gov/dtscportal/home/",os.environ['Portal_Username'],os.environ['Portal_Password'],copy_data=True)&lt;BR /&gt;item = source_Hazs.content.get("e4a9000d007d4e4c8963bb77ab03f1ff")&lt;BR /&gt;target_Hazs.content.clone_items([item],folder=None, item_extent=None, use_org_basemap=True, copy_data=True, search_existing_items=True, item_mapping=None, group_mapping=None, owner=None)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2019 16:11:10 GMT</pubDate>
    <dc:creator>deleted-user-yCQnYxIOF9kS</dc:creator>
    <dc:date>2019-10-18T16:11:10Z</dc:date>
    <item>
      <title>Is there a Workaround for Cloning Content with &gt;1,000 Records from AGOL to Portal Using  "Clone_Items" API Module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-workaround-for-cloning-content-with-gt/m-p/880650#M5097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been successful migrating content with &amp;lt;1,000 Records using the 4-liner mentioned &lt;A _jive_internal="true" href="https://community.esri.com/thread/212663-can-you-use-cloneitems-to-move-items-from-one-portal-to-another"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I get the "_ItemCreateException: ('Failed to create Feature Service..." error when attempting to "clone_content" for a layer with ~13,000 records. When I set&amp;nbsp;copy_data=False I get it to Portal with no records, so I'm assuming its the record count? I am using the "content.clone_items" api module..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Here is a snippet of my code (successful):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;source_Hazs = GIS("https://dtsc.maps.arcgis.com",os.environ['AGOL_Username'],os.environ['AGOL_Password'])&lt;BR /&gt;target_Hazs = GIS("https://maps.dtsc.ca.gov/dtscportal/home/",os.environ['Portal_Username'],os.environ['Portal_Password'],copy_data=True)&lt;BR /&gt;item = source_Hazs.content.get("e4a9000d007d4e4c8963bb77ab03f1ff")&lt;BR /&gt;target_Hazs.content.clone_items([item],folder=None, item_extent=None, use_org_basemap=True, copy_data=True, search_existing_items=True, item_mapping=None, group_mapping=None, owner=None)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 16:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-workaround-for-cloning-content-with-gt/m-p/880650#M5097</guid>
      <dc:creator>deleted-user-yCQnYxIOF9kS</dc:creator>
      <dc:date>2019-10-18T16:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Workaround for Cloning Content with &gt;1,000 Records from AGOL to Portal Using  "Clone_Items" API Module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-workaround-for-cloning-content-with-gt/m-p/880651#M5098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any advice they can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 18:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-workaround-for-cloning-content-with-gt/m-p/880651#M5098</guid>
      <dc:creator>deleted-user-yCQnYxIOF9kS</dc:creator>
      <dc:date>2019-10-25T18:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a Workaround for Cloning Content with &gt;1,000 Records from AGOL to Portal Using  "Clone_Items" API Module?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-workaround-for-cloning-content-with-gt/m-p/1012815#M5366</link>
      <description>&lt;P&gt;You can try to set copy_data=False:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=clone_items#arcgis.gis.ContentManager.clone_items" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=clone_items#arcgis.gis.ContentManager.clone_items&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 03:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-workaround-for-cloning-content-with-gt/m-p/1012815#M5366</guid>
      <dc:creator>JodyZhengLiu</dc:creator>
      <dc:date>2020-12-30T03:34:02Z</dc:date>
    </item>
  </channel>
</rss>

