<?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: Replicating portal content with clone in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/replicating-portal-content-with-clone/m-p/1275566#M8584</link>
    <description>&lt;P&gt;Have you tried...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Check the network connectivity between the two portals: Ensure that the network connection between the two portals is stable and that there are no firewalls or security settings that might be blocking the connection.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Check the server hosting the feature service: Make sure that the server hosting the feature service is up and running and that there are no issues with its configuration or connectivity.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Check the credentials used to access the portals: Ensure that the credentials used to access the portals are correct and have sufficient privileges to perform the cloning operation.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Try cloning a different item: If the issue persists, try cloning a different item from Portal A to Portal B to see if the issue is specific to the item you are trying to clone.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 04 Apr 2023 22:11:15 GMT</pubDate>
    <dc:creator>avonmoos</dc:creator>
    <dc:date>2023-04-04T22:11:15Z</dc:date>
    <item>
      <title>Replicating portal content with clone</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/replicating-portal-content-with-clone/m-p/1268906#M8510</link>
      <description>&lt;P&gt;Hello, I'm trying to clone content from Portal A to Portal B through a clone. I'm writing to ask when the error occurred.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;1. from arcgis.gis import GIS
2. gis1 = GIS("https://portal_a.esri.com/portal","contentownerID","contentownerPW") # source portal
3. gis2 = GIS("https://portal_b.esri.com/portal","receivedcontentownerID.","receivedcontentownerPW")
4. item = gis1.content.get('12cnje12ads')   
   # ''In between, there is a content ID.
5. data = [item]
6. gis2.content.clone_items(data,"test")  
# "" In between, there is a Folder Name&lt;/LI-CODE&gt;&lt;P&gt;The following error occurs when executing this code.&lt;/P&gt;&lt;P&gt;_ItemCreateException Traceback (most recent call last)&lt;BR /&gt;In [14]:&lt;BR /&gt;Line 1: gis2.content.clone_items(data,"clone")&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py, in clone_items:&lt;BR /&gt;Line 7904: return deep_cloner.clone()&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_clone.py, in clone:&lt;BR /&gt;Line 1218: results = executor.submit(self._clone, executor).result()&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\concurrent\futures\_base.py, in result:&lt;BR /&gt;Line 446: return self.__get_result()&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\concurrent\futures\_base.py, in __get_result:&lt;BR /&gt;Line 391: raise self._exception&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\concurrent\futures\thread.py, in run:&lt;BR /&gt;Line 58: result = self.fn(*self.args, **self.kwargs)&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_clone.py, in _clone:&lt;BR /&gt;Line 1191: raise ex&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\concurrent\futures\thread.py, in run:&lt;BR /&gt;Line 58: result = self.fn(*self.args, **self.kwargs)&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_clone.py, in clone:&lt;BR /&gt;Line 3874: raise _ItemCreateException(&lt;/P&gt;&lt;P&gt;_ItemCreateException: ("Failed to create Feature Service assignments_4ff1ca532bd946af845e5bd5a6b909c3: A connection error has occurred: HTTPSConnectionPool(host='gisserver.reprc.co.kr', port=443): Max retries exceeded with url: /server/rest/services/Hosted/assignments_bf1e4/FeatureServer (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x000001866A1CE700&amp;gt;: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))", &amp;lt;Item title:"assignments_bf1e4" type:Feature Layer Collection owner:portaladmin&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;I'm eagerly awaiting your help.&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;from Jin-tae Kim, South-Korea Esri User.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 11:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/replicating-portal-content-with-clone/m-p/1268906#M8510</guid>
      <dc:creator>Jin-taeKim</dc:creator>
      <dc:date>2023-03-17T11:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating portal content with clone</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/replicating-portal-content-with-clone/m-p/1268952#M8512</link>
      <description>&lt;P&gt;It looks like it is having trouble connecting to the server.&amp;nbsp; It looks like the source server based on the information in the last paragraph of the error.&amp;nbsp; It's the 'assignments' layer in particular.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It could be an issue of authorization or security, the server being busy, or an unstable connection.&amp;nbsp;&amp;nbsp; If that is the first layer you are trying to copy, then it may be a more general connection issue.&amp;nbsp; Did the script copy some items then fail on this one?&amp;nbsp; Or was it unable to copy anything?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you confirmed that you can get a connection to the source portal?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 14:00:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/replicating-portal-content-with-clone/m-p/1268952#M8512</guid>
      <dc:creator>TrevisMartin</dc:creator>
      <dc:date>2023-03-17T14:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating portal content with clone</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/replicating-portal-content-with-clone/m-p/1275566#M8584</link>
      <description>&lt;P&gt;Have you tried...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Check the network connectivity between the two portals: Ensure that the network connection between the two portals is stable and that there are no firewalls or security settings that might be blocking the connection.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Check the server hosting the feature service: Make sure that the server hosting the feature service is up and running and that there are no issues with its configuration or connectivity.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Check the credentials used to access the portals: Ensure that the credentials used to access the portals are correct and have sufficient privileges to perform the cloning operation.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Try cloning a different item: If the issue persists, try cloning a different item from Portal A to Portal B to see if the issue is specific to the item you are trying to clone.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 04 Apr 2023 22:11:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/replicating-portal-content-with-clone/m-p/1275566#M8584</guid>
      <dc:creator>avonmoos</dc:creator>
      <dc:date>2023-04-04T22:11:15Z</dc:date>
    </item>
  </channel>
</rss>

