<?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: query.task intermitent error: Unable to complete operation in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280899#M25930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In playing with it more I've noticed that it gives me the error every other time I submit the query. It is the exact same query each time but errors out every other time. I have also tried the identify task and find task and neither are throwing an error. Strange. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone willing to wade in on what may be causing this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 22:05:41 GMT</pubDate>
    <dc:creator>jaromzenger</dc:creator>
    <dc:date>2012-12-19T22:05:41Z</dc:date>
    <item>
      <title>query.task intermitent error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280898#M25929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a query task that intermitently (more like every other time) throws an error message: {"error":{"code":400,"message":"Unable to complete operation.","details":[]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not seen this error using the query.task until we installed ArcGIS Server 10.1 with service pack 1. I am using the API version 3.2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is anyone else having the same problem? Is it a server setting that is causing this? Am I missing something in my code? Is there a fix? Is this a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PLease help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query = new esri.tasks.Query(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = true; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = ["*"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = "parcel_id like '" +searchText+"%'"; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = map.spatialReference; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query, showResults2,function showErr(){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('error in query execution');} );&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 20:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280898#M25929</guid>
      <dc:creator>jaromzenger</dc:creator>
      <dc:date>2012-12-19T20:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: query.task intermitent error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280899#M25930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In playing with it more I've noticed that it gives me the error every other time I submit the query. It is the exact same query each time but errors out every other time. I have also tried the identify task and find task and neither are throwing an error. Strange. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone willing to wade in on what may be causing this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 22:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280899#M25930</guid>
      <dc:creator>jaromzenger</dc:creator>
      <dc:date>2012-12-19T22:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: query.task intermitent error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280900#M25931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. I have also noticed the same after installing service pack 1 for 10.1. Looks like a bug to me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 02:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280900#M25931</guid>
      <dc:creator>RahulMetangale1</dc:creator>
      <dc:date>2012-12-20T02:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: query.task intermitent error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280901#M25932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a workaround to the issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. you can do a request in post&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. pass new time stamp with the query &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var dirty = (new Date()).getTime(); var query = new esri.tasks.Query(); query.where = "MyField= " + MyValue+ " AND " + dirty + "=" + dirty; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is the bug id:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ NIM086349 - Alternate Query (Get) requests fail in Version 10.1 SP1 ]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 02:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280901#M25932</guid>
      <dc:creator>RahulMetangale1</dc:creator>
      <dc:date>2012-12-21T02:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: query.task intermitent error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280902#M25933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Rahul_M.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That work around seems to do the trick. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also found the following thread detailing the same issuse and on there is a link to the bug report. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)"&gt;http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 16:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-intermitent-error-unable-to-complete/m-p/280902#M25933</guid>
      <dc:creator>jaromzenger</dc:creator>
      <dc:date>2012-12-21T16:59:12Z</dc:date>
    </item>
  </channel>
</rss>

