<?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: Share python script with 'the GIS object' from Pro to Portal in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/681171#M52785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use AGPro 2.3 and publish to portal 10.6.1&lt;/P&gt;&lt;P&gt;I usually publish web maps, feature services and even printing services without any problem.&lt;/P&gt;&lt;P&gt;To be clear, what I'm doing is :&lt;/P&gt;&lt;P&gt;- In AGPro on my desktop, I load my python script in the default toolbox as a script. I don't check the "import script" option. The python script is located on my desktop as well.&lt;/P&gt;&lt;P&gt;- With AGPro connected to my portal, I open and run the script normally&lt;/P&gt;&lt;P&gt;- In the catalog pane, in history, I right-click the result and share as a web tool&lt;/P&gt;&lt;P&gt;- I check "copy all data", set up the location folders on my portal and hosting server. Under configuration, I don't check Upload and leave Asynchronous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When analyzing I have this warning&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"Data source used by Script XXX is not registered with the server and will be copied to the server : My Hosted Services"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when publishing I have this Staging error and log :&lt;/P&gt;&lt;P&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:34 Status: InProgress StatusMessage: Successfully wrote sharing info file &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:34 Status: InProgress StatusMessage: Creating thumbnail from map &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:34 Status: Pending StatusMessage: Sharing process started &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:35 Status: InProgress StatusMessage: Sharing process started &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:35 Status: InProgress StatusMessage: Successfully obtained a license from the licensing portal &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:36 Status: InProgress StatusMessage: Creating thumbnail from map &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:37 Status: InProgress StatusMessage: Publishing process started &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:37 Status: InProgress StatusMessage: Loading manifest &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:37 Status: InProgress StatusMessage: Consolidating data and staging web tool &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:47 Status: InProgress StatusMessage: Using ArcGIS Version 12.3 for staging (Source for version: GP Staging Parameters) &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:47 Status: InProgress StatusMessage: Stage Tool initialized &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:47 Status: InProgress StatusMessage: Consolidate data &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:47 Status: InProgress StatusMessage: Staging GP service &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:50 Status: Failed StatusMessage: Consolidation failed ErrorMessage: Consolidation failed &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:50 Status: Failed StatusMessage: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds. ErrorMessage: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds. &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:50 Status: Failed StatusMessage: Failed to execute (StageService). ErrorMessage: Failed to execute (StageService). &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:50 Status: Failed StatusMessage: Staging failed ErrorMessage: Staging failed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2019 00:28:07 GMT</pubDate>
    <dc:creator>DSIProvince_Nord</dc:creator>
    <dc:date>2019-02-28T00:28:07Z</dc:date>
    <item>
      <title>Share python script with 'the GIS object' from Pro to Portal</title>
      <link>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/681169#M52783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Trying to create and share a simple python script as a GP service, I keep having a "staging failed" error when sharing from AGPro to Portal. And a suspicious warning "Data source used by Script XXXX is not registered with the server and will be copied to the server : My Hosted Services"&lt;/P&gt;&lt;P&gt;My script connects to the portal via the GIS object (from arcgis.gis import GIS) and look for a feature service (gis.content.search), then update one field in one object.&lt;/P&gt;&lt;P&gt;From what I understand, it is due to "the GIS object" in my script, for example I'm having the same issue with a very simple script that does nothing but connect to the portal and look for a web map :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;import arcpy&lt;BR /&gt;gis = GIS("my_portal_url" , "user", "pass")&lt;BR /&gt;search_result = gis.content.search("title:SIG Intempéries", item_type = "Web Map")&lt;BR /&gt;print(search_result[0].type)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both scripts run well in AGPro and Jupyter Notebook but when I try to share the result as a Web Tool : same warning and same&amp;nbsp;&lt;SPAN&gt;staging failed error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 22:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/681169#M52783</guid>
      <dc:creator>DSIProvince_Nord</dc:creator>
      <dc:date>2019-02-04T22:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Share python script with 'the GIS object' from Pro to Portal</title>
      <link>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/681170#M52784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted to publish the same script to my Portal from ArcGIS Pro and it published successfully.&amp;nbsp; I was then also able to run the web tool successfully.&amp;nbsp; What version Pro and Portal do you have?&amp;nbsp; Also, can you publish anything referenced to the Portal?&amp;nbsp; Let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 20:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/681170#M52784</guid>
      <dc:creator>MarisaClaggett</dc:creator>
      <dc:date>2019-02-27T20:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Share python script with 'the GIS object' from Pro to Portal</title>
      <link>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/681171#M52785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use AGPro 2.3 and publish to portal 10.6.1&lt;/P&gt;&lt;P&gt;I usually publish web maps, feature services and even printing services without any problem.&lt;/P&gt;&lt;P&gt;To be clear, what I'm doing is :&lt;/P&gt;&lt;P&gt;- In AGPro on my desktop, I load my python script in the default toolbox as a script. I don't check the "import script" option. The python script is located on my desktop as well.&lt;/P&gt;&lt;P&gt;- With AGPro connected to my portal, I open and run the script normally&lt;/P&gt;&lt;P&gt;- In the catalog pane, in history, I right-click the result and share as a web tool&lt;/P&gt;&lt;P&gt;- I check "copy all data", set up the location folders on my portal and hosting server. Under configuration, I don't check Upload and leave Asynchronous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When analyzing I have this warning&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"Data source used by Script XXX is not registered with the server and will be copied to the server : My Hosted Services"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when publishing I have this Staging error and log :&lt;/P&gt;&lt;P&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:34 Status: InProgress StatusMessage: Successfully wrote sharing info file &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:34 Status: InProgress StatusMessage: Creating thumbnail from map &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:34 Status: Pending StatusMessage: Sharing process started &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:35 Status: InProgress StatusMessage: Sharing process started &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:35 Status: InProgress StatusMessage: Successfully obtained a license from the licensing portal &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:36 Status: InProgress StatusMessage: Creating thumbnail from map &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:37 Status: InProgress StatusMessage: Publishing process started &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:37 Status: InProgress StatusMessage: Loading manifest &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:37 Status: InProgress StatusMessage: Consolidating data and staging web tool &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:47 Status: InProgress StatusMessage: Using ArcGIS Version 12.3 for staging (Source for version: GP Staging Parameters) &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:47 Status: InProgress StatusMessage: Stage Tool initialized &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:47 Status: InProgress StatusMessage: Consolidate data &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:47 Status: InProgress StatusMessage: Staging GP service &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:50 Status: Failed StatusMessage: Consolidation failed ErrorMessage: Consolidation failed &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:50 Status: Failed StatusMessage: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds. ErrorMessage: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds. &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:50 Status: Failed StatusMessage: Failed to execute (StageService). ErrorMessage: Failed to execute (StageService). &lt;BR /&gt;Script 204 WebTool "Portal url" "user" 2019-02-28 11:11:50 Status: Failed StatusMessage: Staging failed ErrorMessage: Staging failed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 00:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/681171#M52785</guid>
      <dc:creator>DSIProvince_Nord</dc:creator>
      <dc:date>2019-02-28T00:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Share python script with 'the GIS object' from Pro to Portal</title>
      <link>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/1072865#M61499</link>
      <description>&lt;P&gt;I am seeing the same issue - the service will publish with anonymous or ‘pro’ authentication, but as soon as you specify a portal url and built in creds the staging failed occurs.&lt;/P&gt;&lt;P&gt;did you manage to get a solution to this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2021 00:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/share-python-script-with-the-gis-object-from-pro/m-p/1072865#M61499</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-26T00:29:04Z</dc:date>
    </item>
  </channel>
</rss>

