AnsweredAssumed Answered

QueryTask - Error Code 400 Message Unable to complete operation - Random?

Question asked by antonio.sergioesri-portugal-pt-esridist Employee on Nov 6, 2012
Latest reply on Feb 7, 2014 by bogibrynjar
Hi all,

I'm getting crazy with the following situation:

Test Environment:
Windows 7 64 bits
ArcGIS Server 10.1 SP1

1)I have a simple query in the bellow url:
http://clt0039/arcgis/rest/services/DGIP/DGIPPredios/MapServer/0/query?f=json&where=Edificio%20%3D%2011040971&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outSR=102100

2)I copied the url to the browser (firefox,IE,Chrome), and the first time all worked fine:
{"displayFieldName":"Denominaca","fieldAliases":{"Denominaca":"Denominação"},"geometryType":"esriGeometryPoint","spatialReference":{"wkid":102100,"latestWkid":3857},"...etc...

3)I made Enter again in the url (Second time) and an error occoured:
{"error":{"code":400,"message":"Unable to complete operation.","details":[]}}

4)I made Enter again in the url (third time) and all worked fine:
{"displayFieldName":"Denominaca","fieldAliases":{"Denominaca":"Denominação"},"geometryType":"esriGeometryPoint","spatialReference":{"wkid":102100,"latestWkid":3857},"...etc...

5)I made Enter again in the url (Forth time) and an error occoured:
{"error":{"code":400,"message":"Unable to complete operation.","details":[]}}

...worked fine,  next -> error,  next -> worked fine, next -> error,.......

If i change something (ex: id to find or the wkid etc..) in the url before every Enter always works fine,

Thanks in advance,

António Sérgio

Outcomes