<?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: Help Cloning Items Using Jupyter Notebook in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070523#M11170</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/124753"&gt;@DaveK&lt;/a&gt;, yes there is one parameter you need to add to that connection string.&amp;nbsp; Add the&amp;nbsp;&lt;STRONG&gt;verify_cert=False&lt;/STRONG&gt; piece to the end of the GIS line (see below).&amp;nbsp; This will tell the Python API to not try and validate the SSL certificate.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;cnx = GIS(url=portalURL, username=portalUser, password=portalPass, verify_cert=False)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 15:50:13 GMT</pubDate>
    <dc:creator>ReeseFacendini</dc:creator>
    <dc:date>2021-06-21T15:50:13Z</dc:date>
    <item>
      <title>Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1066400#M11090</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to clone items from our AGO to our organizations enterprise Portal and vice versa. When connecting to my AGO account through the notebook it seems to work just fine. It alerts me that I am logged in as an administrator. When connecting to my Portal account it throws a number of errors including a connection error. Do I need to be an administrator to complete the cloning? Is there any issue with our portal being behind a firewall? and lastly, is an advanced license of Notebook server required for this? Are any of the ArcPy modules required for the cloning process? We currently only have a standard server license. Any help on this topic is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:52:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1066400#M11090</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2021-06-09T14:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1066476#M11091</link>
      <description>&lt;P&gt;Clone items is done through the Python API and does not use arcpy modules, so no you don't need to have an advanced license to run it.&amp;nbsp; You don't need to be an administrator for either system, but it often helps cut down on permission issues that can come up.&amp;nbsp;&amp;nbsp;When attempting to connect to your Enterprise Portal, are you doing that from Notebooks in ArcGIS Online?&amp;nbsp; If so, is your Enterprise Portal public facing?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 16:51:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1066476#M11091</guid>
      <dc:creator>ReeseFacendini</dc:creator>
      <dc:date>2021-06-09T16:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1066481#M11092</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/196423"&gt;@ReeseFacendini&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Good to know we don't need an advanced license. I am using the notebooks within ArcGIS Online. Our Portal is not public facing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1066481#M11092</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2021-06-09T17:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1066482#M11093</link>
      <description>&lt;P&gt;If your Portal is not public facing, then using Notebooks in ArcGIS Online won't work.&amp;nbsp; ArcGIS Online has no way to find your Portal behind a firewall.&amp;nbsp; With that being said, you can use Jupyter Notebooks from ArcGIS Pro on a machine within your network that can access your Portal and ArcGIS Online.&amp;nbsp; All the functions will be the same from the Notebooks in AGOL and Pro, and this would solve the connection errors you are seeing.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1066482#M11093</guid>
      <dc:creator>ReeseFacendini</dc:creator>
      <dc:date>2021-06-09T17:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070503#M11169</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/196423"&gt;@ReeseFacendini&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the info! I'm using notebooks within ArcPro on a machine within our network. After trying to connect to our Portal, I receive this message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_0-1624289501609.png" style="width: 776px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16481i1DBFF7CB257648EC/image-dimensions/776x64?v=v2" width="776" height="64" role="button" title="DaveK_0-1624289501609.png" alt="DaveK_0-1624289501609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm on step 2 of this guide -&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000022252" target="_blank"&gt;https://support.esri.com/en/technical-article/000022252&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've entered my portal URL and my username and password.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_2-1624289656580.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16484i4ABC9727583E336E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaveK_2-1624289656580.png" alt="DaveK_2-1624289656580.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there something different I should be doing or does something need to happen on the Portal end to enable access?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070503#M11169</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2021-06-21T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070523#M11170</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/124753"&gt;@DaveK&lt;/a&gt;, yes there is one parameter you need to add to that connection string.&amp;nbsp; Add the&amp;nbsp;&lt;STRONG&gt;verify_cert=False&lt;/STRONG&gt; piece to the end of the GIS line (see below).&amp;nbsp; This will tell the Python API to not try and validate the SSL certificate.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;cnx = GIS(url=portalURL, username=portalUser, password=portalPass, verify_cert=False)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070523#M11170</guid>
      <dc:creator>ReeseFacendini</dc:creator>
      <dc:date>2021-06-21T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070607#M11171</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/196423"&gt;@ReeseFacendini&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That worked. I ran the final steps of the process and it came back with this message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_0-1624298558951.png" style="width: 712px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16506iE76D22204DEDCABC/image-dimensions/712x612?v=v2" width="712" height="612" role="button" title="DaveK_0-1624298558951.png" alt="DaveK_0-1624298558951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also don't see any new content in my AGO account (I'm moving items from our Portal to AGO)&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070607#M11171</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2021-06-21T18:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070610#M11172</link>
      <description>&lt;P&gt;I think you are passing a full list, where clone_items wants a single object.&amp;nbsp; I suggest iterating through your list of items to be copied and calling clone_items for each iteration&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1070610#M11172</guid>
      <dc:creator>ReeseFacendini</dc:creator>
      <dc:date>2021-06-21T18:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1074640#M11205</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/196423"&gt;@ReeseFacendini&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I'm passing a single item into the script with just the item ID. If I still need to iterate through my items, how would I do so?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_1-1625142467406.png" style="width: 592px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17481i8FE817A90C3A7CFB/image-dimensions/592x258?v=v2" width="592" height="258" role="button" title="DaveK_1-1625142467406.png" alt="DaveK_1-1625142467406.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1074640#M11205</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2021-07-01T12:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1074703#M11208</link>
      <description>&lt;P&gt;The line where you are calling clone_items within the try / except block,&amp;nbsp; you are passing a list (even though it only has a single item in it).&amp;nbsp; Change the line to read "gis2.content.clone_items(&lt;STRONG&gt;item&lt;/STRONG&gt;, copy_data=True, search_existing_items=True)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 14:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1074703#M11208</guid>
      <dc:creator>ReeseFacendini</dc:creator>
      <dc:date>2021-07-01T14:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1074708#M11209</link>
      <description>&lt;P&gt;That didn't seem to work as it threw the same results as before. Anything else I could be doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_0-1625149050340.png" style="width: 688px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17499iC515E768530EF72F/image-dimensions/688x575?v=v2" width="688" height="575" role="button" title="DaveK_0-1625149050340.png" alt="DaveK_0-1625149050340.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 14:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1074708#M11209</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2021-07-01T14:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help Cloning Items Using Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1075837#M11224</link>
      <description>&lt;P&gt;Good morning&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/196423"&gt;@ReeseFacendini&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some more research and playing around with Python scripts, I've come across one that worked for me. Here is the script:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;source = GIS("PORTAL URL", "PORTAL USERNAME", "PASSWORD", verify_cert=False)

target = GIS("https://arcgis.com", "AGO USERNAME")

#list all items in user account
sourceuser = "PORTAL USERNAME"
user = source.users.get(sourceuser)
items = user.items()
print("--&amp;gt; Root")
for item in items:
    print("\t{} : {} : {}".format(item.title, item.type, item.id))
folders = user.folders
for fld in folders:
    flditems = user.items(fld['title'])
    print("--&amp;gt; " + fld['title'])
    for item in flditems:
        print("\t{} : {} : {}".format(item.title, item.type, item.id))


#set item as variable
CloneItem = source.content.get("ITEM ID")
CloneItem

#clone the item
cloned_items = target.content.clone_items(items=[CloneItem])
for ci in cloned_items:
    display(ci)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate all your help with this!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/help-cloning-items-using-jupyter-notebook/m-p/1075837#M11224</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2021-07-06T13:57:16Z</dc:date>
    </item>
  </channel>
</rss>

