Select to view content in your preferred language

[RPC Fault faultString="Unable to perform query. Please check your parameters"...

813
2
10-10-2012 01:39 AM
carmenpellicer
Deactivated User
Hi everyone,

I have a flex application where I take two parameters from the URL (a layer URL, a query) in the following form:
http://myServiceURL?l=LayerURL&q=queryWhere

The application just takes these parameters and zooms to the features in 'LayerURL' returned by 'queryWhere'.

The point is, that it works fine when I query an ArcGIS Online layer, for example:

LayerURL=http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5
queryWhere=STATE_NAME like 'California'

... but it doesn't work with my own LayerURL (Spanish provinces, for example)

LayerURL=myREST_URL
queryWhere=NOMBRE like 'MADRID'

The error message I get is:
[RPC Fault faultString="Unable to perform query. Please check your parameters" faultCode="500" faultDetail=""]

I am attaching a pdf with myREST and ARCGis Online REST service descriptions,
so that anyone can assess where the difference could be.

Can anybody help?,
Thanks
Tags (2)
0 Kudos
2 Replies
EvelynHernandez
Frequent Contributor

how u did the query.where statement?, cuz the q.where statement works like

query.where = "NOMBRE='MADRID'";

And also the layer url has to have the parameter that u are asking for.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Telefonica,

     Being able to see some of your code like where you define your query object and define what your outfields are etc would help.


Robert

0 Kudos