<?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 ArcGIS Ent 10.8.1 &amp;gt; Group Package/Content Export via REST or python &amp;gt; failed to export in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-ent-10-8-1-gt-group-package-content-export/m-p/1078223#M6345</link>
    <description>&lt;DIV&gt;Just doing a basic test to use new-ish 10.8.1+ functionality&amp;nbsp;&lt;A title="https://developers.arcgis.com/rest/users-groups-and-items/export-group-content.htm" href="https://developers.arcgis.com/rest/users-groups-and-items/export-group-content.htm" target="_blank" rel="noopener noreferrer"&gt;Group Package/Content Export&lt;/A&gt;. From&lt;SPAN&gt;&amp;nbsp;my vanilla 10.8.1 single-machine AWS AMI deployment &amp;gt; I created a test FS from Portal &amp;gt; My Content area Create button &amp;gt; and added to test Group &amp;gt; then run python from ArcGIS Pro &amp;gt; fails to Export. The reason given for failure is:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;it failed&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; Hmm....&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This also happens from a basic, published, copied-up into a hosted Feature Service from ArcGIS Pro (aka in Pro: Share a Web Layer &amp;gt; option Copy All Data : Feature).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;For both tests The items exist and are fine, and the groups are default-settings new groups.&lt;BR /&gt;&lt;BR /&gt;Anyone got any good unit tests, end-to-end code samples, or successful scripts? Or what I may be doing wrong?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;gt; import arcgis
&amp;gt; source = arcgis.gis("https://" + sourcehostname + "/" + sourcewebadaptorname + "/", sourceadmin, &amp;gt; sourcepassword, verify_cert=False)
&amp;gt; grpmgr = source.groups
&amp;gt; grp = grpmgr.search()[4]
&amp;lt;Group title:"testgrp01" owner:admin&amp;gt;
&amp;gt; grpmigmgr = arcgis.gis.GroupMigrationManager(grp)
&amp;gt; exportjob = grpmigmgr.create()
&amp;lt;Export Group Content Group Job: 9427df3932664206b8ad78e1f8fca479&amp;gt;
&amp;gt; exportjob.result()
{'id': '9427df3932664206b8ad78e1f8fca479', 'definition': {'type': 'export', 'operationId': 'cm03a9894da87540ecae9b880cb5866b23', 'groupId': 'e5629257771b4621840ac2431c642341', 'groupTitle': 'testgrp01'}, 'status': 'completed', 'created': 1626148933447, 'modified': 1626148953657, 'messages': ["Starting export of items in group 'testgrp01' with id 'e5629257771b4621840ac2431c642341'."], 'result': {'result': {'itemsExported': [], 'itemsSkipped': [], 'itemsFailedExport': [{'itemId': 'd4f27315fbf44a268ada2bbc4c7ebb9f', 'reason': "Export of items from group 'testgrp01' failed."}]}}} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Portal logs:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Failed to export item 'd4f27315fbf44a268ada2bbc4c7ebb9f' into a export package : 'java.lang.Exception: Server returned HTTP status code 404. Requested URL: &lt;A href="https://machine.domain.com/server-webadaptor/rest/directories/arcgisjobs/system/publishingtools_gpserver/j781cc01c0a194c4689ff44e9083d1331/scratch/testfs01.sd" target="_blank" rel="noopener"&gt;https://machine.domain.com/server-webadaptor/rest/directories/arcgisjobs/system/publishingtools_gpserver/j781cc01c0a194c4689ff44e9083d1331/scratch/testfs01.sd&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The file really exists though on: C:\arcgisserver\directories\arcgisjobs\system\publishingtools_gpserver\j781cc01c0a194c4689ff44e9083d1331\scratch\testfs01.sd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Apparently the Job should be here, which it isnt.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://machine.domain.com/portal-webadaptor/sharing/rest/portals/%3CorgID%3E/jobs/%3CjobID" target="_blank" rel="noopener noreferrer"&gt;https://machine.domain.com/portal-webadaptor/sharing/rest/portals/&amp;lt;orgID&amp;gt;/jobs/&amp;lt;jobID&lt;/A&gt;&amp;gt; (orgID typically&amp;nbsp;0123456789ABCDEF)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And the export result EPK to download should be here, which it wont be cause it failed.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;https://machine.domain.com/portal-webadaptor/sharing/rest/content/items/&amp;lt;itemID&amp;gt;/data&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;More info:&lt;BR /&gt;- Tried from Python 10.8.5 (assume this is the latest in the latest ArcGIS Ent 10.8.1 installers in 10.8.1 AWS AMI deployed 07/07/2021)&lt;BR /&gt;- ArcGIS Enterprise 10.8.1 deployed single machine on AWS with self-signed certificate.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- The ArcGIS Pro test used 2.7.1.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Tue, 13 Jul 2021 13:38:19 GMT</pubDate>
    <dc:creator>ShanonLoughton</dc:creator>
    <dc:date>2021-07-13T13:38:19Z</dc:date>
    <item>
      <title>ArcGIS Ent 10.8.1 &gt; Group Package/Content Export via REST or python &gt; failed to export</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-ent-10-8-1-gt-group-package-content-export/m-p/1078223#M6345</link>
      <description>&lt;DIV&gt;Just doing a basic test to use new-ish 10.8.1+ functionality&amp;nbsp;&lt;A title="https://developers.arcgis.com/rest/users-groups-and-items/export-group-content.htm" href="https://developers.arcgis.com/rest/users-groups-and-items/export-group-content.htm" target="_blank" rel="noopener noreferrer"&gt;Group Package/Content Export&lt;/A&gt;. From&lt;SPAN&gt;&amp;nbsp;my vanilla 10.8.1 single-machine AWS AMI deployment &amp;gt; I created a test FS from Portal &amp;gt; My Content area Create button &amp;gt; and added to test Group &amp;gt; then run python from ArcGIS Pro &amp;gt; fails to Export. The reason given for failure is:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;it failed&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; Hmm....&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This also happens from a basic, published, copied-up into a hosted Feature Service from ArcGIS Pro (aka in Pro: Share a Web Layer &amp;gt; option Copy All Data : Feature).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;For both tests The items exist and are fine, and the groups are default-settings new groups.&lt;BR /&gt;&lt;BR /&gt;Anyone got any good unit tests, end-to-end code samples, or successful scripts? Or what I may be doing wrong?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;gt; import arcgis
&amp;gt; source = arcgis.gis("https://" + sourcehostname + "/" + sourcewebadaptorname + "/", sourceadmin, &amp;gt; sourcepassword, verify_cert=False)
&amp;gt; grpmgr = source.groups
&amp;gt; grp = grpmgr.search()[4]
&amp;lt;Group title:"testgrp01" owner:admin&amp;gt;
&amp;gt; grpmigmgr = arcgis.gis.GroupMigrationManager(grp)
&amp;gt; exportjob = grpmigmgr.create()
&amp;lt;Export Group Content Group Job: 9427df3932664206b8ad78e1f8fca479&amp;gt;
&amp;gt; exportjob.result()
{'id': '9427df3932664206b8ad78e1f8fca479', 'definition': {'type': 'export', 'operationId': 'cm03a9894da87540ecae9b880cb5866b23', 'groupId': 'e5629257771b4621840ac2431c642341', 'groupTitle': 'testgrp01'}, 'status': 'completed', 'created': 1626148933447, 'modified': 1626148953657, 'messages': ["Starting export of items in group 'testgrp01' with id 'e5629257771b4621840ac2431c642341'."], 'result': {'result': {'itemsExported': [], 'itemsSkipped': [], 'itemsFailedExport': [{'itemId': 'd4f27315fbf44a268ada2bbc4c7ebb9f', 'reason': "Export of items from group 'testgrp01' failed."}]}}} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Portal logs:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Failed to export item 'd4f27315fbf44a268ada2bbc4c7ebb9f' into a export package : 'java.lang.Exception: Server returned HTTP status code 404. Requested URL: &lt;A href="https://machine.domain.com/server-webadaptor/rest/directories/arcgisjobs/system/publishingtools_gpserver/j781cc01c0a194c4689ff44e9083d1331/scratch/testfs01.sd" target="_blank" rel="noopener"&gt;https://machine.domain.com/server-webadaptor/rest/directories/arcgisjobs/system/publishingtools_gpserver/j781cc01c0a194c4689ff44e9083d1331/scratch/testfs01.sd&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The file really exists though on: C:\arcgisserver\directories\arcgisjobs\system\publishingtools_gpserver\j781cc01c0a194c4689ff44e9083d1331\scratch\testfs01.sd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Apparently the Job should be here, which it isnt.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://machine.domain.com/portal-webadaptor/sharing/rest/portals/%3CorgID%3E/jobs/%3CjobID" target="_blank" rel="noopener noreferrer"&gt;https://machine.domain.com/portal-webadaptor/sharing/rest/portals/&amp;lt;orgID&amp;gt;/jobs/&amp;lt;jobID&lt;/A&gt;&amp;gt; (orgID typically&amp;nbsp;0123456789ABCDEF)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And the export result EPK to download should be here, which it wont be cause it failed.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;https://machine.domain.com/portal-webadaptor/sharing/rest/content/items/&amp;lt;itemID&amp;gt;/data&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;More info:&lt;BR /&gt;- Tried from Python 10.8.5 (assume this is the latest in the latest ArcGIS Ent 10.8.1 installers in 10.8.1 AWS AMI deployed 07/07/2021)&lt;BR /&gt;- ArcGIS Enterprise 10.8.1 deployed single machine on AWS with self-signed certificate.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- The ArcGIS Pro test used 2.7.1.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Jul 2021 13:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-ent-10-8-1-gt-group-package-content-export/m-p/1078223#M6345</guid>
      <dc:creator>ShanonLoughton</dc:creator>
      <dc:date>2021-07-13T13:38:19Z</dc:date>
    </item>
  </channel>
</rss>

