Select to view content in your preferred language

QueryTask Error on Joined Layer in Map Service

2755
3
02-09-2011 01:53 PM
ScottDavis
Occasional Contributor
I have a map service with a layer that is joined to an external SDE database. When I try to perform a query through the services directory I get the error message, "Unable to perform query. Please check your parameters." The server logs two error messages, "General GeoDatabase Error." & "Method failed.HRESULT = 0x80070057 : The parameter is incorrect. ."

Here is my test:
http://172.16.17.48/ArcGIS/rest/services/OilGasMining/MapServer/0/query?text=&geometry=&geometryType...

Just wondering if anyone else has had this problem.
0 Kudos
3 Replies
RaviNarayanan
Esri Contributor
Are you able to execute an identify on this layer and get the fields from the joined table?

From the error messages, this sounds like a failure in the geodatabase. Please contact ESRI Support and submit a request to investigate this further.
0 Kudos
RaviNarayanan
Esri Contributor
Scott,
Please see http://resources.arcgis.com/content/nimbus-bug?bugID=TklNMDQ1MjU5 for information on  related bug report. This is marked as non reproduced in 10.0.
0 Kudos
JacobLesser
New Contributor II
I know this is an old post.  I got the same error with ArcGIS Server 10 and PostgreSQL when joining a feature class to an SDE table.  The solution turned out to be that when doing a join, the column names are prepended with the original table names, so my columns look like table1.field1 and table2.field2 instead of just field1 and field2.  In the case of postgresql, I actually needed to append my database and schema names, so the outfields look like database.schema.table1.field1, etc.

Just wanted to share in case anybody else stumbles on this post like I did.
0 Kudos