Hello Experts,
I am doing query task to find the records in polygon layer, which are spatially intersecting with input geometry . Query task always goes to failed event with Error code 400 and message "Unable to complete operation." wither inner details "Unable to complete Query operation."
Input geometry is polygon shape (81 vertices) with 12 inner rings . If I pass simple polygon query task works fine. How to solve this issue?. Please help me
Sliverlight version: 2.1.0.446
Pseudo code
QueryTask areaInfo = new QueryTask(url);
areaInfo.ExecuteCompleted += new EventHandler<QueryEventArgs>(areaInfo_ExecuteCompleted);
areaInfo.Failed += new EventHandler<TaskFailedEventArgs>(areaInfo_Failed);
ESRI.ArcGIS.Client.Tasks.Query query = new Query();
query.Geometry = geometry;
//Set the fields to return from the query.
query.SpatialRelationship = SpatialRelationship.esriSpatialRelIntersects;
query.OutFields.Add("*");
query.ReturnGeometry = true;
//Call the ExecuteAsync method to run the query.
areaInfo.ExecuteAsync(query);
}
SR