2 different responses from the same query

671
1
12-09-2011 07:18 AM
CoryHines
New Contributor
Hi Everyone,

I am running into something that is might be a Flex Viewer thing or it might be a rest thing.  I've posted this question in the general AGS forum too.

I had a colleague of mine perform an address search and send me the results from firebug.  First he gets and error message: [RPC Fault faultString="Empty Result. Check Input Parameters"faultCode="null"faultDetails="null".  Ok so this is the firebug response he gets.
http://gis.linncounty.org/arcgis/rest/services/LandRecords/MapServer/17/query?f=json&returnGeometry=...

I do the same search on my end and I get the result, and get a slightly different message, however all of the parameters he gets are listed in mine, just in a different order.  Here is my response:
http://gis.linncounty.org/arcgis/rest/services/LandRecords/MapServer/17/query?f=json&spatialRel=esri...

I have had him clear every temp and cache he can and I have cleared my rest cache, made sure my service is running properly, etc.

Thanks for any insight anyone may have.

Cory
Tags (2)
0 Kudos
1 Reply
AdamConner
New Contributor
I compared all the parameters and they are the same.  If I copy and manually move the where to the end after the outFields the request works.  It is definitely an issue with the rest API as the parameter order shouldn't matter.  I would watch him do it and see if there is an order to how he is doing the search to see why the requests are in a different order in the first place (that might be a browser issue?) 

Sorry I'm not much help, but the order of the url parameters is what is causing the issue.  I would report that as a bug to technical support and try to find a workaround until the bug is fixed.
0 Kudos