<?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 Error getting results after esri.tasks.Geoprocessor call completion in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-getting-results-after-esri-tasks/m-p/676631#M63058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When our Esri map page loads, we make some geoprocessor calls back to the server to gather some information.&amp;nbsp; One of the examples looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prodDescGP = new esri.tasks.Geoprocessor([my url]);&lt;/P&gt;&lt;P&gt;prodDescGP.submitJob("", prodCompleted, prodStatus, prodError);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function prodCompleted(jobId) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; prodDescGP.getResultData(jobId, "Descriptions", function (result, data) { ..........})&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is happening is that the prodCompleted is being called but when we call the getResultData function to get the results, we get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Unable to get value of param 'Descriptions' forJob ID 'j356tghy657890kki887'. The job may not exist or it could still be executing or could have failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we found was that it must have still be executing because if we continue to check for the results, say every second, it seems to eventually return the results.&amp;nbsp; Sometimes it might take 1 or 2 extra seconds, sometimes 5 or 10 seconds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this might be happening??&amp;nbsp; We are moving to a new server (still a Windows Server 2008) and this happens with the new server but not the old one.&amp;nbsp; We are using the ArcGIS Javascript library v2.2.&amp;nbsp; I know that is an older version but we but we are stuck with that for the time being.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 15:06:27 GMT</pubDate>
    <dc:creator>PeterLen</dc:creator>
    <dc:date>2014-11-21T15:06:27Z</dc:date>
    <item>
      <title>Error getting results after esri.tasks.Geoprocessor call completion</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-getting-results-after-esri-tasks/m-p/676631#M63058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When our Esri map page loads, we make some geoprocessor calls back to the server to gather some information.&amp;nbsp; One of the examples looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prodDescGP = new esri.tasks.Geoprocessor([my url]);&lt;/P&gt;&lt;P&gt;prodDescGP.submitJob("", prodCompleted, prodStatus, prodError);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function prodCompleted(jobId) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; prodDescGP.getResultData(jobId, "Descriptions", function (result, data) { ..........})&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is happening is that the prodCompleted is being called but when we call the getResultData function to get the results, we get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Unable to get value of param 'Descriptions' forJob ID 'j356tghy657890kki887'. The job may not exist or it could still be executing or could have failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we found was that it must have still be executing because if we continue to check for the results, say every second, it seems to eventually return the results.&amp;nbsp; Sometimes it might take 1 or 2 extra seconds, sometimes 5 or 10 seconds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this might be happening??&amp;nbsp; We are moving to a new server (still a Windows Server 2008) and this happens with the new server but not the old one.&amp;nbsp; We are using the ArcGIS Javascript library v2.2.&amp;nbsp; I know that is an older version but we but we are stuck with that for the time being.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 15:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-getting-results-after-esri-tasks/m-p/676631#M63058</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2014-11-21T15:06:27Z</dc:date>
    </item>
  </channel>
</rss>

