<?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: Geo-processing getResultData() call has timing problems in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/1340354#M82533</link>
    <description>&lt;P&gt;No, I was never able to get an answer so I ended up writing a javascript function that essentially just looped and made another call to get the results until results were sent.&amp;nbsp; Not elegant, but that is what I had to do.&lt;/P&gt;</description>
    <pubDate>Sun, 22 Oct 2023 21:59:00 GMT</pubDate>
    <dc:creator>PeterLen</dc:creator>
    <dc:date>2023-10-22T21:59:00Z</dc:date>
    <item>
      <title>Geo-processing getResultData() call has timing problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/411416#M37912</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;BR /&gt;I have a geo-processing tool that I call from my client's Esri Javascript API where I call the submitJob to start it.&amp;nbsp; When I get the call back that the job process has completed (my callback function), I then get the jobid and call the getResultData() function in order to get the geo-processing tool's response to the request. This has worked as expected for a long time.&amp;nbsp; We recently have had to migrate to new Windows servers (Windows Server 2008 to Windows Server 2016) and as part of that have migrated from ArcServer 10.2 to ArcServer 10.6.&amp;nbsp; When I added our existing web client in our new enivronment, however, I found some troubling results.&amp;nbsp; Now when the callback function is called to indicate that the process has completed, I get the infamous "cannot complete operation" when making the getResultData() call.&amp;nbsp; I am finding that there is some timing issue.&amp;nbsp; When I make the getResultData() call, ArcServer apparently does not know how or where to find the results based on the jobid.&amp;nbsp; If I wait a few seconds then I can get the results.&amp;nbsp; In other words, the Esri Javascript API said it completed the geo-processing call and gave me a jobid to query ArcServer to get the results, but ArcServer was not yet ready to handle that query properly..... unless I waited a few seconds.&amp;nbsp; Currently, that waiting is roughly 5 seconds (after the completion notification) in order to ensure that I can get the results. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any clue as to what may be happening?&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>Mon, 08 Jun 2020 18:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/411416#M37912</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2020-06-08T18:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing getResultData() call has timing problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/1106310#M74923</link>
      <description>&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;We seem to have recently started having very similar issues, however neither Windows or ArcServer have been updated recently.&lt;/P&gt;&lt;P&gt;Did you find out anymore about the apparent need to wait for a few seconds in order to get a successful response?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 03:27:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/1106310#M74923</guid>
      <dc:creator>tatham</dc:creator>
      <dc:date>2021-10-11T03:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing getResultData() call has timing problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/1340310#M82532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/170353"&gt;@PeterLen&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527883"&gt;@tatham&lt;/a&gt;&amp;nbsp;any updates on the root cause and fixes please.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2023 15:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/1340310#M82532</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2023-10-22T15:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing getResultData() call has timing problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/1340354#M82533</link>
      <description>&lt;P&gt;No, I was never able to get an answer so I ended up writing a javascript function that essentially just looped and made another call to get the results until results were sent.&amp;nbsp; Not elegant, but that is what I had to do.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2023 21:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geo-processing-getresultdata-call-has-timing/m-p/1340354#M82533</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2023-10-22T21:59:00Z</dc:date>
    </item>
  </channel>
</rss>

