<?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: Export Web Map Task: Failed to create layer from service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-failed-to-create-layer-from/m-p/73229#M6613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the response in&amp;nbsp;&lt;A href="https://community.esri.com/thread/212638"&gt;Print services not working correctly Portal for ArcGIS&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically if your "Print" menu in a map of Portal has only two templates there, that means Portal is still using its default print service. That is our case. If so, you can remove the current print service from Organization -&amp;gt; Utility Services -&amp;gt; Printing, Save, and then add back the ArcGIS Server print service to &lt;SPAN&gt;Utility Services -&amp;gt; Printing&lt;/SPAN&gt;. Now if you check the "Print" menu in a map, there will be more print templates available.&lt;/P&gt;&lt;P&gt;After that, from a Google Chrome incognito browser, you should be able to print the non-shared web map.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2019 22:04:32 GMT</pubDate>
    <dc:creator>JYI</dc:creator>
    <dc:date>2019-12-16T22:04:32Z</dc:date>
    <item>
      <title>Export Web Map Task: Failed to create layer from service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-failed-to-create-layer-from/m-p/73227#M6611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Arcgis server 10.3 and am having trouble using &lt;A _jive_internal="true" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fjsapi%2Fprint-amd.html" rel="nofollow" target="_blank"&gt;Print | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of my services are secured via tokens and I get access to my rest service directory through my webserver proxy. I am able to print unsecured services fine. Any secured services however return the error:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Unable to complete operation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt; Error executing tool.: Layer "xx": Failed to create layer from service at http.../MapServer/xx. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;If I directly copy the webmap JSON into the export task and run it this error also appears, leading me to believe this is a problem on the arcgis server side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I found this relevant thread (&lt;A _jive_internal="true" data-containerid="2100" data-containertype="14" data-objectid="70272" data-objecttype="1" href="https://community.esri.com/thread/70272"&gt;Printing Secured Servies with Export web map task&lt;/A&gt; ) which seems to be my issue, but there is no apparent solution from there.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 15:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-failed-to-create-layer-from/m-p/73227#M6611</guid>
      <dc:creator>JamesSampica</dc:creator>
      <dc:date>2015-11-13T15:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task: Failed to create layer from service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-failed-to-create-layer-from/m-p/73228#M6612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to create custom Printing Tools service to print maps that contains secured services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you. &lt;A href="http://server.arcgis.com/en/server/latest/create-web-apps/windows/printing-maps-that-contain-secured-services.htm" title="http://server.arcgis.com/en/server/latest/create-web-apps/windows/printing-maps-that-contain-secured-services.htm"&gt;Printing maps that contain secured services—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-failed-to-create-layer-from/m-p/73228#M6612</guid>
      <dc:creator>KousikM</dc:creator>
      <dc:date>2016-01-07T10:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task: Failed to create layer from service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-failed-to-create-layer-from/m-p/73229#M6613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the response in&amp;nbsp;&lt;A href="https://community.esri.com/thread/212638"&gt;Print services not working correctly Portal for ArcGIS&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically if your "Print" menu in a map of Portal has only two templates there, that means Portal is still using its default print service. That is our case. If so, you can remove the current print service from Organization -&amp;gt; Utility Services -&amp;gt; Printing, Save, and then add back the ArcGIS Server print service to &lt;SPAN&gt;Utility Services -&amp;gt; Printing&lt;/SPAN&gt;. Now if you check the "Print" menu in a map, there will be more print templates available.&lt;/P&gt;&lt;P&gt;After that, from a Google Chrome incognito browser, you should be able to print the non-shared web map.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2019 22:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-failed-to-create-layer-from/m-p/73229#M6613</guid>
      <dc:creator>JYI</dc:creator>
      <dc:date>2019-12-16T22:04:32Z</dc:date>
    </item>
  </channel>
</rss>

