<?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: queryTask Error: Unable to complete operation. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140328#M13030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It seems the issue is missing where statement query.where but as i read its not mandatory. Anyone care to enlightening me about this please. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thank you&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Either specify a spatial filter or attribute filter (even through you want to retrieve all the records - use something like query.where ="1=1").&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 14:15:36 GMT</pubDate>
    <dc:creator>HemingZhu</dc:creator>
    <dc:date>2012-06-11T14:15:36Z</dc:date>
    <item>
      <title>queryTask Error: Unable to complete operation.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140326#M13028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello guys i'm running a query task. Upon execution i'm running into the message: Error: Unable to complete operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Made this widget like few before. But this time my service call looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.io.script.jsonp_dojoIoScript5._jsonpCallback({"error":{"code":400,"message":"Unable to complete&amp;nbsp; operation.","details":["'where' parameter not specified","'objectIds' parameter not specified","'time' parameter not specified","'geometry' parameter not specified","'text' parameter not specified","Unable to complete Query operation."]}});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;contrasting the one i get from a working example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.io.script.jsonp_dojoIoScript12._jsonpCallback({"displayFieldName":"IME_ZNAMEN","fieldAliases":{"STATUS":"status","IME_ZNAMEN":"ime znamenitosti","POVRSINAHA":"površina v ha"},"geometryType":"esriGeometryPolygon","spatialReference":{"wkid":102060},"fields":[{"name":"STATUS","type":"esriFieldTypeString","alias":"status","length":127},{"name":"IME_ZNAMEN","type":"esriFieldTypeString","alias":"ime znamenitosti","length":127},{"name":"POVRSINAHA","type":"esriFieldTypeDouble","alias":"površina v ha"}],"features":[{"attributes":{"STATUS":"naravni spomenik","IME_ZNAMEN":"Kamnica - Vra?je skale - površinsko geomorfološki naravni spomenik","POVRSINAHA":5.7971167100000001},"geometry":{"rings":[[[546636.05630000029,158997.63260000013],................loads of data...........]]]}}]});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my code looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var queryTask = new esri.tasks.QueryTask(HoverLinkWidget_config.layerUrl+"/0");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //query.outSpatialReference = map.spatialReference.wkid;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; query.returnGeometry = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.outFields = ["*"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;queryTask.execute(query, HoverResults, HoverError);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So upon executing this i get to HoverError function which reports the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something awfully apparent i'm doing wrong here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 04:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140326#M13028</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2012-06-11T04:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask Error: Unable to complete operation.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140327#M13029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems the issue is missing where statement query.where but as i read its not mandatory. Anyone care to enlightening me about this please. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 05:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140327#M13029</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2012-06-11T05:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask Error: Unable to complete operation.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140328#M13030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It seems the issue is missing where statement query.where but as i read its not mandatory. Anyone care to enlightening me about this please. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thank you&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Either specify a spatial filter or attribute filter (even through you want to retrieve all the records - use something like query.where ="1=1").&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 14:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140328#M13030</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2012-06-11T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask Error: Unable to complete operation.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140329#M13031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;oh so it is mandatory in some way. Yep i used 1=1 to get them all:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 04:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-error-unable-to-complete-operation/m-p/140329#M13031</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2012-06-12T04:59:56Z</dc:date>
    </item>
  </channel>
</rss>

