jpossin

Query with Mulitpoint geometry: "Invalid or missing input parameters."

Discussion created by jpossin on Mar 26, 2014
I am trying to query a feature layer on my ArcGis Server withe the following code:

var queryTask = new esri.tasks.QueryTask(arcServerRESTURL + "/" + layerNumber);

var query = new esri.tasks.Query();
query.geometry = multipoint;
query.returnGeometry = true;
query.outFields = ["*"];

queryTask.execute(query, function(featureSet) {
 for (var i=0, il=featureSet.features.length; i<il; i++) {
  idList.push(parseInt(featureSet.features[i].attributes.id));
  if (showResult) {
   featureSet.features[i].setSymbol(gemeindenSymbol);
   graphicsLayer.add(featureSet.features[i]);
  };
 }
 }
}, function(error){
 alert(error);
});


Everytime I got this error message:

Invalid or missing input parameters.


Can I do something that the query use the mulipoint as geometry type?

Regards
Jörg

Outcomes