AnsweredAssumed Answered

query.task intermitent error: Unable to complete operation

Question asked by jaromzenger on Dec 19, 2012
Latest reply on Dec 21, 2012 by jaromzenger

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":[]}}

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.

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?

PLease help!

                query = new esri.tasks.Query();         query.returnGeometry = true;         query.outFields = ["*"];         query.where = "parcel_id like '" +searchText+"%'";         query.outSpatialReference = map.spatialReference;         queryTask.execute(query, showResults2,function showErr(){         console.log('error in query execution');} );