<?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 Export map timeouts in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41454#M3553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm discussing this with ESRI support already but I'm still wondering if anyone experienced this before, so i can get of their backs as well.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I run an export task (be it from js app or rest interface) and if it timeouts the "print queue" breaks and i get old results on all the next successful prints until certain time has passed or server has been restarted (im uncertain about this fix though).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 05:09:41 GMT</pubDate>
    <dc:creator>MatejSkerjanc</dc:creator>
    <dc:date>2013-11-12T05:09:41Z</dc:date>
    <item>
      <title>Export map timeouts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41454#M3553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm discussing this with ESRI support already but I'm still wondering if anyone experienced this before, so i can get of their backs as well.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I run an export task (be it from js app or rest interface) and if it timeouts the "print queue" breaks and i get old results on all the next successful prints until certain time has passed or server has been restarted (im uncertain about this fix though).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 05:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41454#M3553</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2013-11-12T05:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export map timeouts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41455#M3554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what version/service pack for ArcGIS Server are you running?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 13:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41455#M3554</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-11-12T13:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export map timeouts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41456#M3555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had a similar problem myself.&amp;nbsp; Basically the PDF getting generated don't have unique names on them.&amp;nbsp; As the temporary files are cleared out (something that is happening on the AGS server side), the names are re-used.&amp;nbsp; But the browser remembers the name from before and shows you what it cached.&amp;nbsp; I had started out using the print widget, but switched to printTask instead. That way I was able to control the name of the output PDF, adding a date stamp that would make the name unique.&amp;nbsp; Then the browser wouldn't be drawing old cached PDFs.&amp;nbsp; This is maybe fixed at 10.2, but I'm still at 10.1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a thread where this was discussed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/87125-Synchronous-Custom-Printing-output-names-are-not-unique?highlight=printtask+PDF" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/87125-Synchronous-Custom-Printing-output-names-are-not-unique?highlight=printtask+PDF&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 15:18:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41456#M3555</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-11-12T15:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export map timeouts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41457#M3556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mr. John Gravis i think its 10.1 (base or maybe sp1 not certain)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mr. Schlot I'm using print task as well, and i have already considered pushing in name but it disregarded it. I guess i was doing something wrong, since the parameters clearly state filename... Could you tell me to which params you've stuck it to? Oh i'll read the link you've provided. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you both, saved me tons of troubles!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. we're actually using async task and this still works (slow server causes timeouts). Anyhow thanks a ton again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 04:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41457#M3556</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2013-11-13T04:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export map timeouts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41458#M3557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Occasionally I do have my request time out while generating the PDF.&amp;nbsp; I haven't been able to pin it to whether it's my browser, or the way I have my print service defined.&amp;nbsp; It's not consistent enough to be repeatable by others in my office who have tried it.&amp;nbsp; I tried both synchronous and asynchronous configuration.&amp;nbsp; I wanted to have it set as asynchronous, but for some reason that never did work for me, so I had to switch.&amp;nbsp;&amp;nbsp; It's also more of a problem on our production server as opposed to test, so maybe it's a permission problem too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the whole function is in the other thread.&amp;nbsp; Here's the relevant section where the name is specified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var printTask = new PrintTask(printServiceUrl,printParams);
&amp;nbsp;&amp;nbsp;&amp;nbsp; deferred = printTask.execute(printParams);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deferred.addCallback(function (response){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var d = new Date();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dateTime =&amp;nbsp; d.getTime(); 
 &lt;SPAN style="text-decoration:underline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var outputUrl = response.url + '?time=' + dateTime;&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status.innerHTML = "";
&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; var select = registry.byId("templateSelect");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectOptions = select.getOptions();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select.set("value", "Choose Print Format");&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(outputUrl,"_blank");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:36:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41458#M3557</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-10T21:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export map timeouts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41459#M3558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Schlot i've made a mistake, we're using sync service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Our timeouts come from weak server (core2, since on quad core we have no issues). We've been in touch with ESRI support and this is what we came up with: weak server configuration since the export map is apparently quite a heavy load.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 08:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41459#M3558</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2013-11-14T08:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export map timeouts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41460#M3559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had this problem with Firefox 23, but now it seems to be Okay (i'm with ArcServer 10.1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When an old print showed up, I just had to force refresh the print output (CTRL+F5) and the browser was forced to get the good print output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like schlot said, adding a timestamp at the end of the file name could be a good idea.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 11:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-map-timeouts/m-p/41460#M3559</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2013-11-14T11:24:08Z</dc:date>
    </item>
  </channel>
</rss>

