AnsweredAssumed Answered

queryTask Error: Unable to complete operation.

Question asked by detroit on Jun 10, 2012
Latest reply on Jun 11, 2012 by detroit
Hello guys i'm running a query task. Upon execution i'm running into the message: Error: Unable to complete operation.
Made this widget like few before. But this time my service call looks like this:
dojo.io.script.jsonp_dojoIoScript5._jsonpCallback({"error":{"code":400,"message":"Unable to complete  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."]}});

contrasting the one i get from a working example:
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...........]]]}}]});

Now my code looks like this:
var queryTask = new esri.tasks.QueryTask(HoverLinkWidget_config.layerUrl+"/0");
   var query = new esri.tasks.Query();
   //query.outSpatialReference = map.spatialReference.wkid;
   query.returnGeometry = true;
query.outFields = ["*"];
queryTask.execute(query, HoverResults, HoverError);


So upon executing this i get to HoverError function which reports the error.

Is there something awfully apparent i'm doing wrong here?

Thanks guys

Outcomes