<?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: Print Task doesn't bring any result back in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403934#M37168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Is your print service is public facing or just intranet?&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Why don't you try this print sample to see if you can print using your service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fjssamples%2Fwidget_print_esri_request.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;Print templates with esri.request | ArcGIS API for JavaScript&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt; Then using the developer tool from browser to compare the difference behavior from the sample print service versus yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I would recommend read this thread to see if you have the similar issue &lt;A href="https://community.esri.com/thread/176497"&gt;Print Task doesn't bring any result back&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 19:07:15 GMT</pubDate>
    <dc:creator>YueWu1</dc:creator>
    <dc:date>2016-05-03T19:07:15Z</dc:date>
    <item>
      <title>Print Task doesn't bring any result back</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403932#M37166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello everyone, &lt;/P&gt;&lt;P&gt;I'm trying to have a print widget in my application. I'm using PrintTask.&amp;nbsp; here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp; &lt;SPAN class="s1"&gt;var&lt;/SPAN&gt; template = &lt;SPAN class="s1"&gt;new&lt;/SPAN&gt; PrintTemplate();&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.exportOptions = {&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 500,&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 400,&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpi: 96&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.format = &lt;SPAN class="s2"&gt;"PDF"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.layout = &lt;SPAN class="s2"&gt;"MAP_ONLY"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.preserveScale = &lt;SPAN class="s1"&gt;false&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params = &lt;SPAN class="s1"&gt;new&lt;/SPAN&gt; PrintParameters();&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.map = map;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.template = template;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.outSpatialReference = map.spatialReference;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTask = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;new&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; PrintTask(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;'&lt;A href="https://agd1v.enp.aramco.com.sa:6443/arcgis/rest/services/Print_Templates/PrintSrvc/GPServer/Export%20Web%20Map'"&gt;&lt;SPAN class="s4"&gt;url'&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;, { async: &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;true&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; And then whenever the user clicks on the print button it will go to the following function&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;function&lt;/SPAN&gt; print() {&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTask.execute(params, printResult, printError);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;function&lt;/SPAN&gt; printResult(result) {&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open(results.value.url, &lt;SPAN class="s1"&gt;"_blank"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s1"&gt;function&lt;/SPAN&gt; printError(result) {&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(result);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;When I run the application and click on print, it doesn't do anything(doesn't bring an error either)&lt;/P&gt;&lt;P class="p1"&gt;anyone can help please? I would really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 17:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403932#M37166</guid>
      <dc:creator>IsraAlhamood</dc:creator>
      <dc:date>2016-05-03T17:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task doesn't bring any result back</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403933#M37167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first thing I would try is to open the web developer tools in either Chrome or Firefox (press F12) and open the network tab before clicking the print button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After clicking the print button, to you see calls to the print service? If you see no activity there then the problem is with the button event (e.g., the call to the print service is never occurring when the button is clicked).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 17:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403933#M37167</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2016-05-03T17:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task doesn't bring any result back</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403934#M37168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Is your print service is public facing or just intranet?&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Why don't you try this print sample to see if you can print using your service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fjssamples%2Fwidget_print_esri_request.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;Print templates with esri.request | ArcGIS API for JavaScript&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt; Then using the developer tool from browser to compare the difference behavior from the sample print service versus yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I would recommend read this thread to see if you have the similar issue &lt;A href="https://community.esri.com/thread/176497"&gt;Print Task doesn't bring any result back&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 19:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403934#M37168</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-05-03T19:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task doesn't bring any result back</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403935#M37169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see a lot of calls to the print service. But no results back whatsoever, wether it's an error or a PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I clicked on one of the first calls in the network tab and then go to the response body, the jobStatus is: esriJobExecuting and then when I see the last calls it says it's esriJobFailed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't say why! It's supposed to bring an error message when it catches an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 05:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403935#M37169</guid>
      <dc:creator>IsraAlhamood</dc:creator>
      <dc:date>2016-05-04T05:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task doesn't bring any result back</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403936#M37170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; No the error will not give specifics, it will just be what you see esriJobFailed by default. You will need to go to your ArcGIS Server logs to find more detail on why it is failing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 12:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403936#M37170</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-04T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task doesn't bring any result back</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403937#M37171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need to change the value of the &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/geoprocessing-service-settings-parameters.htm#GUID-39A6B08B-4A90-4556-B922-42DF00529BD7"&gt;Show Messages setting&lt;/A&gt; of the Print GP service if you want the service to return error messages to the client. (For security reasons, no messages are returned by default.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 16:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403937#M37171</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2016-05-04T16:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task doesn't bring any result back</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403938#M37172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your printResults function signature is printResult(result), but you reference it as results (plural) when retrieving the url to open the other window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2019 22:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-doesn-t-bring-any-result-back/m-p/403938#M37172</guid>
      <dc:creator>CraigMiller2</dc:creator>
      <dc:date>2019-10-22T22:33:34Z</dc:date>
    </item>
  </channel>
</rss>

