<?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 Custom Print service with secured service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584379#M54640</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 was trying to create a custom Print Service to use with the ArcGIS API (Print task). I made my own python toolbox using &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/convertwebmaptomapdocument.htm"&gt;ConvertWebMapToMapDocument&lt;/A&gt;. I added my arcgis connection file (.ags) to the "extra_conversion_options" &amp;nbsp;parameter of the tool.&lt;/P&gt;&lt;P&gt;The ags file is the exact same one that I used to create a Print service using the built-in toolbox from ESRI, and this print service is working well.&lt;/P&gt;&lt;P&gt;I stored it under one of my registered folder on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The toolbox compiles and works fine locally (it does not ask for credentials). However whatever I do, when it is published as a service, I always get an error :&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #505051; background-color: #e5edf4; font-size: 12px;"&gt;RuntimeError: Layer "....": Unable to connect to map server at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even weirder, some of the feature services I add to the map, seem to print ok while most don't. They are all secured the same way, and stored at the same place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 class="" style="color: #4d4d4d; background-color: #fefefe; font-weight: 500; font-size: 2.375em; margin: 0em 0px 6px;"&gt;&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 13:53:17 GMT</pubDate>
    <dc:creator>MatthieuThery1</dc:creator>
    <dc:date>2017-07-25T13:53:17Z</dc:date>
    <item>
      <title>Custom Print service with secured service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584379#M54640</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 was trying to create a custom Print Service to use with the ArcGIS API (Print task). I made my own python toolbox using &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/convertwebmaptomapdocument.htm"&gt;ConvertWebMapToMapDocument&lt;/A&gt;. I added my arcgis connection file (.ags) to the "extra_conversion_options" &amp;nbsp;parameter of the tool.&lt;/P&gt;&lt;P&gt;The ags file is the exact same one that I used to create a Print service using the built-in toolbox from ESRI, and this print service is working well.&lt;/P&gt;&lt;P&gt;I stored it under one of my registered folder on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The toolbox compiles and works fine locally (it does not ask for credentials). However whatever I do, when it is published as a service, I always get an error :&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #505051; background-color: #e5edf4; font-size: 12px;"&gt;RuntimeError: Layer "....": Unable to connect to map server at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even weirder, some of the feature services I add to the map, seem to print ok while most don't. They are all secured the same way, and stored at the same place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 class="" style="color: #4d4d4d; background-color: #fefefe; font-weight: 500; font-size: 2.375em; margin: 0em 0px 6px;"&gt;&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 13:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584379#M54640</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2017-07-25T13:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Print service with secured service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584380#M54641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 years later and I still have the issue.&lt;/P&gt;&lt;P&gt;It seems I am unable to use&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;extra_conversion_options with &lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Farcmap%2F10.3%2Fanalyze%2Farcpy-mapping%2Fconvertwebmaptomapdocument.htm" rel="nofollow" style="color: #287433; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;ConvertWebMapToMapDocument&lt;/A&gt;,&amp;nbsp;which prevents me from printing secured services...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 12:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584380#M54641</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2019-10-28T12:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Print service with secured service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584381#M54642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthieu, sorry to hear about the trouble. It sounds like you are publishing a custom print service, from ArcMap to ArcGIS Enterprise, is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the custom print service that you published, always throws the error you mentioned, but it also prints some layers, but not others? And all layers are secure. Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to troubleshoot this from an ArcGIS API for JavaScript perspective, but I would like to know ore information to see if I can help and/or reproduce the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also recommend 2 things:&lt;/P&gt;&lt;P&gt;1) Can you try this same workflow from ArcGIS Pro instead of ArcMap?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/server/latest/create-web-apps/windows/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.htm" title="https://enterprise.arcgis.com/en/server/latest/create-web-apps/windows/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.htm"&gt;Share a print service web tool with custom layouts from ArcGIS Pro—Documentation (10.7) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Try posting your question in the ArcGIS Enterprise space, as you may get better results from someone more familiar with publishing services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584381#M54642</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-01-08T20:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Print service with secured service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584382#M54643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out we just figured it out. It was linked to the way we used to create server connection file, and in particular the way we specified the server URL.&lt;/P&gt;&lt;P&gt;We were typically using either:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://gisserver.domain.com:6080/arcgis/admin" title="http://gisserver.domain.com:6080/arcgis/admin"&gt;http://gisserver.domain.com:6080/arcgis/admin&lt;/A&gt; or&amp;nbsp;&lt;A class="link-titled" href="https://webadaptorhost.domain.com/webadaptorname/services" title="https://webadaptorhost.domain.com/webadaptorname/services"&gt;https://webadaptorhost.domain.com/webadaptorname/rest/services&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had to use&amp;nbsp;&lt;A href="https://webadaptorhost.domain.com/webadaptorname/services" style="color: #2989c5; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" title="https://webadaptorhost.domain.com/webadaptorname/services"&gt;https://webadaptorhost.domain.com/webadaptorname/services&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; instead. This was a simple fix, which took us 2 years to figure out.&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 11:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-service-with-secured-service/m-p/584382#M54643</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2020-01-15T11:56:51Z</dc:date>
    </item>
  </channel>
</rss>

