<?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: Results from geoprocessing job not being returned to client... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278925#M25728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad you got it fixed. For future reference, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geoprocessor.htm#execute"&gt;execute&lt;/A&gt;&lt;SPAN&gt; is for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/gpexecute.html"&gt;synchronous GP services&lt;/A&gt;&lt;SPAN&gt; while &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geoprocessor.htm#submitJob"&gt;submitJob&lt;/A&gt;&lt;SPAN&gt; is for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/gpsubmit.html"&gt;async GP services&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2012 15:32:28 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-02-07T15:32:28Z</dc:date>
    <item>
      <title>Results from geoprocessing job not being returned to client...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278921#M25724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have published a geoprocessing job to ArcGIS Server.&amp;nbsp; I cannot seem to retrieve the resultant geometry from the job.&amp;nbsp; The job executes successfully as seen in the ArcGIS Server log and valid data in the output folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the JavaScript API side - results[0] is undefined is returned from the job.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

gp.submitJob(params, getPlume);

function getPlume(results, messages) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(results);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var features = results[0].value.features;
}

&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why I am not getting the geometry returned?&amp;nbsp; There is a valid shape file created in the output folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ps - uses the same model as this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/PublicSafety/EMModels/GPServer/ERGByChemical" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/PublicSafety/EMModels/GPServer/ERGByChemical&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278921#M25724</guid>
      <dc:creator>GISAdmin1</dc:creator>
      <dc:date>2021-12-11T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Results from geoprocessing job not being returned to client...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278922#M25725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In fiddler or firebug net is result Ok?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what do you see in console.log(results); ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 08:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278922#M25725</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-02-04T08:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Results from geoprocessing job not being returned to client...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278923#M25726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have attached the console representation of the results.&amp;nbsp; All appears well, except there is no geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]11725[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I can successfully return the geometry if I manually plug in this URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://vwgisrest/COSREST/rest/services/ERGModels2/GPServer/ERGByChemical/jobs/jc0bd4ea9f6874a2b8c8663b156d4daca/results/outerg_shp?f=pjson"&gt;http://vwgisrest/COSREST/rest/services/ERGModels2/GPServer/ERGByChemical/jobs/jc0bd4ea9f6874a2b8c8663b156d4daca/results/outerg_shp?f=pjson&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 15:51:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278923#M25726</guid>
      <dc:creator>GISAdmin1</dc:creator>
      <dc:date>2012-02-06T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Results from geoprocessing job not being returned to client...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278924#M25727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Problem Solved - use gp.execute, not gp.SubmitJob.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 15:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278924#M25727</guid>
      <dc:creator>GISAdmin1</dc:creator>
      <dc:date>2012-02-07T15:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Results from geoprocessing job not being returned to client...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278925#M25728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad you got it fixed. For future reference, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geoprocessor.htm#execute"&gt;execute&lt;/A&gt;&lt;SPAN&gt; is for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/gpexecute.html"&gt;synchronous GP services&lt;/A&gt;&lt;SPAN&gt; while &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geoprocessor.htm#submitJob"&gt;submitJob&lt;/A&gt;&lt;SPAN&gt; is for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/gpsubmit.html"&gt;async GP services&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 15:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/results-from-geoprocessing-job-not-being-returned/m-p/278925#M25728</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-07T15:32:28Z</dc:date>
    </item>
  </channel>
</rss>

