<?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: ArcGIS Server URL's for Portal Federated GIS Servers in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-server-url-s-for-portal-federated-gis/m-p/714013#M55370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I &lt;EM&gt;think&lt;/EM&gt; and according to the documentation inServer (line 14 in your code above) should be the path to an ArcGIS Server connection created through ArcCatalog/ArcMap/Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"You can use ArcGIS for Server connections listed under the GIS Servers node in the Catalog window, or you can navigate to a different folder where you might have server connection files stored.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you are connecting to ArcGIS Online, make sure you type My Hosted Services for the server connection with each word capitalized and a space between each word."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/upload-service-definition.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/upload-service-definition.htm"&gt;Upload Service Definition—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;I believe the correct format for the federatedServerURL parameter is: &lt;A href="https://server.domain.com/webadapto"&gt;https://server.domain.com/webadapto&lt;/A&gt;r&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2020 20:06:53 GMT</pubDate>
    <dc:creator>GeoJosh</dc:creator>
    <dc:date>2020-07-08T20:06:53Z</dc:date>
    <item>
      <title>ArcGIS Server URL's for Portal Federated GIS Servers</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-url-s-for-portal-federated-gis/m-p/714012#M55369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using a derivative of the template map service publishing&amp;nbsp;examples given in many places throughout ESRI documentation, I have&amp;nbsp;the following working (I've stripped this down significantly)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# set up a number of parameter for SD Draft generation&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# shortened for illustration&lt;/SPAN&gt;
sharing_draft &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getWebLayerSharingDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FEDERATED_SERVER"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MAP_IMAGE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; service&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
sharing_draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;federatedServerUrl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;federatedServerUrl&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Create SD Draft files&lt;/SPAN&gt;
sharing_draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exportToSDDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sddraft_output_filename&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;StageService_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sddraft_output_filename&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sd_output_filename&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# set up a number of parameter for SD Draft&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# shortened for illustration&lt;/SPAN&gt;
inSdFile &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sd_output_filename
inServer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;serverUrl&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
inServiceName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;service name&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UploadServiceDefinition_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inSdFile&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inServer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inServiceName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly is the difference - if any - between&amp;nbsp; what I am referring to here as &amp;gt;federatedServerUrl. and &amp;lt;serverUrl&amp;gt;? And what exactly is the format of the URL expected here? I have it working in one environment and am using the exact same string (URL) for both variables. In another environment, the same code fails with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. 
Please refer to the error help for potential solutions, or contact Esri
Technical Support http://esriurl.com/support.
Failed to execute (StageService).‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference is that I'm using a different URL but the same one&amp;nbsp;in both places.&amp;nbsp;It's a valid URL that mimics the first environment's URL and includes the webadaptor name. It successfully created the&amp;nbsp;SD Draft file. So the URL seems to work fine for that steps.&lt;/P&gt;&lt;P&gt;Very frustrating. I have used this a bunch of times in both environments and now it fails.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-url-s-for-portal-federated-gis/m-p/714012#M55369</guid>
      <dc:creator>ArneGelfert</dc:creator>
      <dc:date>2021-12-12T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server URL's for Portal Federated GIS Servers</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-url-s-for-portal-federated-gis/m-p/714013#M55370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I &lt;EM&gt;think&lt;/EM&gt; and according to the documentation inServer (line 14 in your code above) should be the path to an ArcGIS Server connection created through ArcCatalog/ArcMap/Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"You can use ArcGIS for Server connections listed under the GIS Servers node in the Catalog window, or you can navigate to a different folder where you might have server connection files stored.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you are connecting to ArcGIS Online, make sure you type My Hosted Services for the server connection with each word capitalized and a space between each word."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/upload-service-definition.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/upload-service-definition.htm"&gt;Upload Service Definition—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;I believe the correct format for the federatedServerURL parameter is: &lt;A href="https://server.domain.com/webadapto"&gt;https://server.domain.com/webadapto&lt;/A&gt;r&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2020 20:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-url-s-for-portal-federated-gis/m-p/714013#M55370</guid>
      <dc:creator>GeoJosh</dc:creator>
      <dc:date>2020-07-08T20:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server URL's for Portal Federated GIS Servers</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-url-s-for-portal-federated-gis/m-p/714014#M55371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that's correct. You can use a&amp;nbsp;URL for your REST endpoint or some web adaptor alias for it as your server reference. I have that working in&amp;nbsp;one environment. I'm not saying using an AGS connection file won't work but it's just another way of accomplishing that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2020 22:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-url-s-for-portal-federated-gis/m-p/714014#M55371</guid>
      <dc:creator>ArneGelfert</dc:creator>
      <dc:date>2020-07-08T22:44:18Z</dc:date>
    </item>
  </channel>
</rss>

