<?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: Correct syntax for GroupMigrationManager in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/correct-syntax-for-groupmigrationmanager/m-p/1011760#M5357</link>
    <description>&lt;P&gt;Yes, you can download on the following url:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://server.company.com/webconext/sharing/rest/content/items/EPK_ITEM_ID/data" target="_blank"&gt;https://server.company.com/webconext/sharing/rest/content/items/EPK_ITEM_ID/data&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;avec&amp;nbsp;EPK_ITEM_ID, l'id de l'item .epk.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope that help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;On my side I cannot make the import works using ArcGIS for Python I face another issue.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have to do it manually on the REST API:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A title="https://server.company.com/webconext/sharing/rest/content/items/EPK_ITEM_ID/data" href="https://server.company.com/webconext/sharing/rest/content/items/EPK_ITEM_ID/data" target="_self"&gt;&lt;SPAN&gt;https://server.company.com/webconext/sharing/rest/community/groups/MYGROUPID/import&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope that helps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 22 Dec 2020 16:32:09 GMT</pubDate>
    <dc:creator>NicolasGIS</dc:creator>
    <dc:date>2020-12-22T16:32:09Z</dc:date>
    <item>
      <title>Correct syntax for GroupMigrationManager</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/correct-syntax-for-groupmigrationmanager/m-p/779683#M1138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We recently upgraded our Enterprise environment to 10.8.1 and are looking forward to taking advantage of the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#groupmigrationmanager"&gt;GroupMigrationManager&lt;/A&gt; tools within the ArcGIS API for Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the documentation linked above is lacking. I am unsure what the proper syntax would be to export and then import the group content EPK file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gis = GIS(PORTALURL,USERNAME,PASSWORD)&lt;/P&gt;&lt;P&gt;grp = gis.groups.get("&amp;lt;GROUPID&amp;gt;")&lt;BR /&gt;grpmgr = arcgis.gis.GroupMigrationManager(grp)&lt;BR /&gt;grpcnt = grpmgr.create()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates a new folder in my Content called "exports" and has an EPK item. However, there is no way to download this file through the UI. When I use the following to try and load this into a different 10.8.1 Portal, I get the error following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gis = GIS(PORTALURL2,USERNAME,PASSWORD)&lt;/P&gt;&lt;P&gt;grp = gis.groups.get("&amp;lt;GROUPID&amp;gt;")&lt;BR /&gt;grpmgr = arcgis.gis.GroupMigrationManager(grp)&lt;BR /&gt;grpcnt = grpmgr.load(epk_file=grpcnt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\AdminScripts\GroupMigration.py", line 9, in &amp;lt;module&amp;gt;&lt;BR /&gt; grpcnt = grpmgr.load(epk_item=grpcnt)&lt;BR /&gt; File "C:\....\__init__.py", line 1305, in load&lt;BR /&gt; assert isinstance(epk_item, Item)&lt;BR /&gt;AssertionError&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help explain what the proper syntax is to export and then import these EPK files? I wish the documentation provided better examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2020 13:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/correct-syntax-for-groupmigrationmanager/m-p/779683#M1138</guid>
      <dc:creator>EricAnderson_DHS</dc:creator>
      <dc:date>2020-10-06T13:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for GroupMigrationManager</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/correct-syntax-for-groupmigrationmanager/m-p/1011760#M5357</link>
      <description>&lt;P&gt;Yes, you can download on the following url:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://server.company.com/webconext/sharing/rest/content/items/EPK_ITEM_ID/data" target="_blank"&gt;https://server.company.com/webconext/sharing/rest/content/items/EPK_ITEM_ID/data&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;avec&amp;nbsp;EPK_ITEM_ID, l'id de l'item .epk.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope that help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;On my side I cannot make the import works using ArcGIS for Python I face another issue.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have to do it manually on the REST API:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A title="https://server.company.com/webconext/sharing/rest/content/items/EPK_ITEM_ID/data" href="https://server.company.com/webconext/sharing/rest/content/items/EPK_ITEM_ID/data" target="_self"&gt;&lt;SPAN&gt;https://server.company.com/webconext/sharing/rest/community/groups/MYGROUPID/import&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope that helps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Dec 2020 16:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/correct-syntax-for-groupmigrationmanager/m-p/1011760#M5357</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2020-12-22T16:32:09Z</dc:date>
    </item>
  </channel>
</rss>

