<?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 arcpy missing target server in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833458#M3262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I use this&amp;nbsp;sharing_draft = m.getWebLayerSharingDraft("FEDERATED_SERVER", "MAP_IMAGE", service) I get an error missing target server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'e signed in using my /portal url and my federated server is on a /server GIS site url. There is no-where to tell it the name of the target sever or url&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thoughts? Trying to publish a Pro project file as a federated map image through code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jul 2019 05:11:55 GMT</pubDate>
    <dc:creator>GNOMICAdmin</dc:creator>
    <dc:date>2019-07-15T05:11:55Z</dc:date>
    <item>
      <title>arcpy missing target server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833458#M3262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I use this&amp;nbsp;sharing_draft = m.getWebLayerSharingDraft("FEDERATED_SERVER", "MAP_IMAGE", service) I get an error missing target server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'e signed in using my /portal url and my federated server is on a /server GIS site url. There is no-where to tell it the name of the target sever or url&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thoughts? Trying to publish a Pro project file as a federated map image through code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 05:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833458#M3262</guid>
      <dc:creator>GNOMICAdmin</dc:creator>
      <dc:date>2019-07-15T05:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy missing target server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833459#M3263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i also have this same issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 05:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833459#M3263</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2019-07-17T05:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy missing target server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833460#M3264</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 faced the same question and found it in the docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the docs:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/sharing/mapimagesharingdraft-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/sharing/mapimagesharingdraft-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;MapImageSharingDraft—Sharing module | Documentation&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...you'll need to add the '&lt;EM&gt;federatedServerUrl&lt;/EM&gt;' property to the '&lt;EM&gt;MapImageSharingDraft&lt;/EM&gt;' object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(from the Code Sample on the same page...)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;sharing_draft = m.getWebLayerSharingDraft("FEDERATED_SERVER", "MAP_IMAGE", service)
sharing_draft.&lt;SPAN style="color: #0000ff;"&gt;federatedServerUrl&lt;/SPAN&gt; = "https://MyFederatedServer.esri.com/server" &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833460#M3264</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy missing target server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833461#M3265</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;Our portal (ArcGIS 10.7.1) and thus the federated server is secured with Web-Tier Authentication (Apache Tomcat and the Java WebAdapter) with LDAP (Basic-Auth).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, calling the &lt;STRONG&gt;exportToSDDRAFT&lt;/STRONG&gt; function after specifying the &lt;STRONG&gt;federatedServerUrl&lt;/STRONG&gt; fails with the error:&lt;BR /&gt;&lt;STRONG&gt;Exception has occurred: ValueError&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Target server is not a federated server or is inaccessible.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I hand over authentication params to the arcpy function to finally generate a *.sddraft or *.sd file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sharing_draft&amp;nbsp;=&amp;nbsp;m.getWebLayerSharingDraft(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"FEDERATED_SERVER"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"MAP_IMAGE"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;service)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sharing_draft.federatedServerUrl&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"https://MyFederatedServer.esri.com/server"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sharing_draft.summary&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"My&amp;nbsp;Summary"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sharing_draft.tags&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"My&amp;nbsp;Tags"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sharing_draft.description&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"My&amp;nbsp;Description"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sharing_draft.credits&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"My&amp;nbsp;Credits"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sharing_draft.useLimitations&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"My&amp;nbsp;Use&amp;nbsp;Limitations"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;#&amp;nbsp;Create&amp;nbsp;Service&amp;nbsp;Definition&amp;nbsp;Draft&amp;nbsp;file&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sharing_draft.exportToSDDraft(sddraft_output_filename)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 05:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/833461#M3265</guid>
      <dc:creator>LorenzMeyer1</dc:creator>
      <dc:date>2020-05-28T05:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy missing target server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/1043542#M5878</link>
      <description>&lt;P&gt;I am having the same issue as LorenzMeyer1. In my case, the commands execute and I am able to complete publishing when I am using the python window in ArcPro. In a script however, the 'exportToSDDraft' command fails with the error:&lt;/P&gt;&lt;P&gt;'ValueError:Target server is not a federated server or is inaccessible'&lt;/P&gt;&lt;P&gt;Has anyone run across a solution?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 21:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/1043542#M5878</guid>
      <dc:creator>Abby_Gleason</dc:creator>
      <dc:date>2021-04-02T21:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy missing target server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/1044077#M5890</link>
      <description>&lt;P&gt;if I were you, I probably would test manual publishing with &lt;STRONG&gt;ArcGIS Pro&lt;/STRONG&gt; with the same credentials and federate server first, trying to isolate the settings from portal site&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 04:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/1044077#M5890</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-04-06T04:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy missing target server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/1049989#M5957</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/470453"&gt;@Abby_Gleason&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I am having the same issue. Did you manage to find a solution?&lt;BR /&gt;I can publish from ArcGIS Pro, but get the error when running an external script.&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 09:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/1049989#M5957</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2021-04-22T09:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy missing target server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/1088950#M6500</link>
      <description>&lt;P&gt;I ran into this issue today. Apparently, the "federated_server_url" is pretty picky with which URL you use. Go to the Portal Admin Directory and go to your federation page (Home &amp;gt; Federation &amp;gt; Servers &amp;gt; your server). Then, use the URL listed in the "Url" parameter on that page as the&amp;nbsp;"federated_server_url" parameter in your script. That fixed my issue.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 16:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-missing-target-server/m-p/1088950#M6500</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2021-08-13T16:57:53Z</dc:date>
    </item>
  </channel>
</rss>

