<?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: submitJob / output file problems in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723099#M67157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll probably have better luck over in the server forum:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/forums/214-ArcGIS-10.1-for-Server-General" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/forums/214-ArcGIS-10.1-for-Server-General&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 15:27:55 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-10-15T15:27:55Z</dc:date>
    <item>
      <title>submitJob / output file problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723097#M67155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have a simple geoprocessing service exposed to REST on ArcGIS for Server 10.0 (I've attached the screenshot here).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the JS API, I have a submitJob task that runs the geoprocessing tool (a lot of code was taken from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/gp_clipasync.html" rel="nofollow" target="_blank"&gt;this sample&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; However, the result KMZ file doesn't seem to be in the directory that job info claims.&amp;nbsp; I modified the downloadfile function to &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function downloadFile(outputFile){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("downloading"); &amp;nbsp; map.graphics.clear(); &amp;nbsp; console.log(outputFile); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var theurl = outputFile.value.url;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //window.location = theurl; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The outputFile.value.url is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myservername/arcgisjobs/airportsexport2_gpserver/j154fac0763164443b0ad3456c4b4220f/scratch/results.kmz" rel="nofollow" target="_blank"&gt;http://myservername/arcgisjobs/airportsexport2_gpserver/j154fac0763164443b0ad3456c4b4220f/scratch/results.kmz&lt;/A&gt;&lt;SPAN&gt;, but when I navigate to that directory on the server, there is no results.kmz file there.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is something wrong with my model?&amp;nbsp; Where is the KMZ file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a somewhat related note, is this the best way to generate a KMZ from a user defined polygon?&amp;nbsp; I know I can query the REST entpoint directly, but I'm unsure how to do that without directly making a GET or POST AJAX request in Javascript?&amp;nbsp; But mostly, where is that KMZ file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18396[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723097#M67155</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2012-10-12T19:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: submitJob / output file problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723098#M67156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An update to this post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The output file does appear correctly in an entirely different directory: the one in which my original mxd exists and from which I built the service and imported into ArcGIS Server Manager. When I built my model in ModelBuilder, I made sure to check the "store relative path names" and specify the output directory of the results.kmz file to be %scratchworkspace%\export.kmz. So why is the output file going to a completely different directory and not the arcgisjobs directory? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 13:28:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723098#M67156</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2012-10-15T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: submitJob / output file problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723099#M67157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll probably have better luck over in the server forum:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/forums/214-ArcGIS-10.1-for-Server-General" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/forums/214-ArcGIS-10.1-for-Server-General&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 15:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723099#M67157</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-10-15T15:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: submitJob / output file problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723100#M67158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found the answer! See &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/69052-submitJob-amp-incorrect-output-directories"&gt;this post&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 12:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/submitjob-output-file-problems/m-p/723100#M67158</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2012-10-16T12:48:22Z</dc:date>
    </item>
  </channel>
</rss>

