<?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: Unable to fetch the results from GP Service Toolbox in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-fetch-the-results-from-gp-service/m-p/570190#M53153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You haven't results because in your gp service you haven't set result map service so if you use &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.getResultImageLayer(jobInfo.jobId,"final_shp", imageParams, function(gpLayer) {
&amp;nbsp;&amp;nbsp; console.log(jobInfo.jobId);
&amp;nbsp;&amp;nbsp; map.addLayer(gpLayer);

...
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it doesn't return result because you haven't map service for generate image of output gp (render server side)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have a featureset so you can use &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;getResultData&lt;/SPAN&gt;&lt;SPAN&gt; and render client side your results&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:32:44 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2021-12-12T00:32:44Z</dc:date>
    <item>
      <title>Unable to fetch the results from GP Service Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-fetch-the-results-from-gp-service/m-p/570189#M53152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok I am really confused. I can see the &lt;/SPAN&gt;&lt;A href="http://webgis.arizona.edu/ArcGIS/rest/services/usadapt/model/GPServer/Model_non/jobs/jdbc9f13385414769a24d2c1e130b04c3/results/final_shp" rel="nofollow noopener noreferrer" target="_blank"&gt;output&lt;/A&gt;&lt;SPAN&gt; of the result from geoprocessing tool. But why am I not able to add it to the map. As you can see the result returns all the attribute values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
gp.getResultImageLayer(jobInfo.jobId,"final_shp", imageParams, function(gpLayer) {
&amp;nbsp;&amp;nbsp; console.log(jobInfo.jobId);
&amp;nbsp;&amp;nbsp; map.addLayer(gpLayer);
&amp;nbsp;&amp;nbsp; map.graphics.clear();
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my &lt;/SPAN&gt;&lt;A href="http://msgist2011.grd.arizona.edu/project/gp_submitjob.html" rel="nofollow noopener noreferrer" target="_blank"&gt;application&lt;/A&gt;&lt;SPAN&gt; and you will see the job id in the console. If you are not able to view the link I have added for result change the job id with the new one (in the console) that you ran and you will see the results. Executing the model, once you submit takes upto 20-25 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be the reason? I am using ArcServer 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:32:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-fetch-the-results-from-gp-service/m-p/570189#M53152</guid>
      <dc:creator>SmaranHarihar</dc:creator>
      <dc:date>2021-12-12T00:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to fetch the results from GP Service Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-fetch-the-results-from-gp-service/m-p/570190#M53153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You haven't results because in your gp service you haven't set result map service so if you use &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.getResultImageLayer(jobInfo.jobId,"final_shp", imageParams, function(gpLayer) {
&amp;nbsp;&amp;nbsp; console.log(jobInfo.jobId);
&amp;nbsp;&amp;nbsp; map.addLayer(gpLayer);

...
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it doesn't return result because you haven't map service for generate image of output gp (render server side)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have a featureset so you can use &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;getResultData&lt;/SPAN&gt;&lt;SPAN&gt; and render client side your results&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:32:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-fetch-the-results-from-gp-service/m-p/570190#M53153</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2021-12-12T00:32:44Z</dc:date>
    </item>
  </channel>
</rss>

