<?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 PrintTask not working in Web App Builder in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11957#M1156</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;Below is the code I am using it for PrintTask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername%3A6443%2Farcgis%2Frest%2Fservices%2FUtilities%2FPrintingTools%2FGPServer%2FExport%2520Web%2520Map%2520Task" rel="nofollow" target="_blank"&gt;https://servername:6443/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt; var printTask = new PrintTask(url);&lt;BR /&gt; var params = new PrintParameters();&lt;BR /&gt; var template = new PrintTemplate();&lt;BR /&gt; template.format = "PDF";&lt;BR /&gt; template.layout = "MAP_ONLY";&lt;BR /&gt; template.preserveScale = false;&lt;BR /&gt; template.layoutOptions = {"legendLayers": [],&amp;nbsp;&lt;BR /&gt; "titleText": "Map Print",&lt;BR /&gt; "authorText": "AAAAA",&lt;BR /&gt; "copyrightText": "BBBBB",&lt;BR /&gt; "scalebarUnit": "Kilometers"};&lt;BR /&gt; params.map = this.map;&lt;BR /&gt; params.template = template;&lt;BR /&gt; printTask.execute(params, lang.hitch(this, this._printResult),lang.hitch(this, this._printResultError));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_printResultError:function(err)&lt;BR /&gt; {&lt;BR /&gt; debugger;&lt;BR /&gt; alert(err);&lt;BR /&gt; },&lt;BR /&gt; _printResult:function(res){&lt;BR /&gt; debugger;&lt;BR /&gt; window.open(res.url, "_blank")&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Error executing tool. Export Web Map Task : Layer "ServiceName": Unable to connect to map server at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername%3A6443%2Farcgis%2Frest%2Fservices%2FServiceName%2FMapServer" rel="nofollow" target="_blank"&gt;https://servername:6443/arcgis/rest/services/ServiceName/MapServer&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;Failed to execute (Export Web Map).&lt;BR /&gt;Failed to execute (Export Web Map Task)."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2017 11:00:36 GMT</pubDate>
    <dc:creator>mohannainar1</dc:creator>
    <dc:date>2017-12-06T11:00:36Z</dc:date>
    <item>
      <title>PrintTask not working in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11957#M1156</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;Below is the code I am using it for PrintTask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername%3A6443%2Farcgis%2Frest%2Fservices%2FUtilities%2FPrintingTools%2FGPServer%2FExport%2520Web%2520Map%2520Task" rel="nofollow" target="_blank"&gt;https://servername:6443/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt; var printTask = new PrintTask(url);&lt;BR /&gt; var params = new PrintParameters();&lt;BR /&gt; var template = new PrintTemplate();&lt;BR /&gt; template.format = "PDF";&lt;BR /&gt; template.layout = "MAP_ONLY";&lt;BR /&gt; template.preserveScale = false;&lt;BR /&gt; template.layoutOptions = {"legendLayers": [],&amp;nbsp;&lt;BR /&gt; "titleText": "Map Print",&lt;BR /&gt; "authorText": "AAAAA",&lt;BR /&gt; "copyrightText": "BBBBB",&lt;BR /&gt; "scalebarUnit": "Kilometers"};&lt;BR /&gt; params.map = this.map;&lt;BR /&gt; params.template = template;&lt;BR /&gt; printTask.execute(params, lang.hitch(this, this._printResult),lang.hitch(this, this._printResultError));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_printResultError:function(err)&lt;BR /&gt; {&lt;BR /&gt; debugger;&lt;BR /&gt; alert(err);&lt;BR /&gt; },&lt;BR /&gt; _printResult:function(res){&lt;BR /&gt; debugger;&lt;BR /&gt; window.open(res.url, "_blank")&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Error executing tool. Export Web Map Task : Layer "ServiceName": Unable to connect to map server at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername%3A6443%2Farcgis%2Frest%2Fservices%2FServiceName%2FMapServer" rel="nofollow" target="_blank"&gt;https://servername:6443/arcgis/rest/services/ServiceName/MapServer&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;Failed to execute (Export Web Map).&lt;BR /&gt;Failed to execute (Export Web Map Task)."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 11:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11957#M1156</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-12-06T11:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask not working in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11958#M1157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting same error in Print Widget also , kindly refer the attached screen shot .&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 11:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11958#M1157</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-12-06T11:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask not working in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11959#M1158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Do you have Web Adaptor installed on your server? If you do then you should be using the web adaptor url and not the "https: //&lt;STRONG&gt;servername:6443&lt;/STRONG&gt;/arcgis/rest/services" url. Is that map service secured?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11959#M1158</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-06T14:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask not working in Web App Builder</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11960#M1159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes web adaptor was installed . Map service is not secured. Thanks for the help robert its working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 05:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-working-in-web-app-builder/m-p/11960#M1159</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-12-08T05:09:40Z</dc:date>
    </item>
  </channel>
</rss>

