Layer query issue with 10.1 update

502
0
02-14-2013 08:08 AM
JatinPatel
Occasional Contributor
We have a query that specifies "Return Fields". For some reason, that is too complicated to explain, we have to pass in a field name even if it does not exist as a return field. With 10.0, it just used to ignore it, if it was not a valid field. But with 10.1, if we pass a fieldname that does not exist, it throws an error: Invalid or missing input parameters.

Is there a setting in Arc that I can ignore parameters in query if they do not exist than to throw and error? Or if anyone can suggest a workaround?

Here is an example using 2 ESRI services one using 10.0 or less and other one 10.1.
using 10.0, if I add "dummy" as a return value, it ignores it still works:
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapSe...

using 10.1, if I add "dummy" as a return value, it gives an error back:
http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer/0/query?where=pool_...
0 Kudos
0 Replies