Geocortex.Workflow.WorkflowException: Unhandled exception: 'One or more errors occurred.' in activity '1.3: QueryTask'
I am getting the following error message when trying to perform a simple query on an ArcSDE feature class and cannot figure out what the error is:
Workflow Error
Exception has been thrown by the target of an invocation
Workflow 'b1' failed
Unhandled exception: 'One of more errors occurred'. in activity '1.3: QueryTask'.
One or more errors occurred.
Specified method is not supported.
The Query Task itself is very simple:
"OBJECTID = 1"
The following was copied out of the system log file:
<Event Timestamp="2013-06-13T08:39:23.1299541-07:00" Level="ERROR" Identity="Guest">
<Message>Specified method is not supported.</Message>
</Event>
<Event Timestamp="2013-06-13T08:39:23.1406967-07:00" Level="ERROR" Identity="Guest">
<Message>Workflow 'b1' failed. Cause: Geocortex.Workflow.WorkflowException: Unhandled exception: 'One or more errors occurred.' in activity '1.3: QueryTask'. ---> System.AggregateException: One or more errors occurred. ---> ESRI.ArcGIS.Client.Tasks.ServiceException: Specified method is not supported.
at Geocortex.Workflow.Activities.QueryTask.ExecuteQuery(QueryTask task, Query query)
at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Geocortex.Workflow.Activities.QueryTask.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
--- End of inner exception stack trace ---</Message>
</Event>
<Event Timestamp="2013-06-13T08:39:23.1416733-07:00" Level="ERROR" Identity="Guest">
<Message>Exception has been thrown by the target of an invocation.
Workflow 'b1' failed
Unhandled exception: 'One or more errors occurred.' in activity '1.3: QueryTask'.
One or more errors occurred.
Specified method is not supported.</Message>
</Event>
And the following was found in the ArcGIS Server log file:
The Server Object instance is shutting down because the Idle Timeout Interval has elapsed CFH.ConfigurationFactoryHost
Can anyone help me understand this error message so that I can fix whatever the issue is.
-
Hi Joseph,
If you run a web-traffic monitoring tool such as Fiddler (https://support.geocortex.com/use-fiddler-to-capture-web-traffic-between-a-web-browser-and-a-web-site) and run your workflow in the Simulator in Workflow Designer, you should see the Query request going to ArcGIS Server. It will look something like this:
http://server/arcgis/rest/services/YourServiceName/MapServer/0/query?returnGeometry=false&spatialRel=esriSpatialRelIntersects&where=OBJECTID%3d1&f=json&
If you copy this url into your browser and change the f=json on the end to f=html, you will see the Query form on the ArcGIS Server Rest Endpoint for your layer. From here you should be able to debug it further to see if you need to specify any additional properties in order for the Query to complete.
Once you get the results you expect at the ArcGIS Server Rest Endpoint, make any necessary changes to the QueryTask in your workflow, and it should execute properly.
-Victoria
0 -
Thank you for your feedback Victoria,
I started fiddler and then ran the workflow, found the URL, ran it and received this:
{ "error" : { "code" : 500, "message" : "Specified method is not supported.", "details" : [ "Specified method is not supported." ] } }Any ideas?
JoeB
0 -
Hi Joe,
Are you able to navigate to http://server/arcgis/rest/services/YourServiceName/MapServer/0/query?
If you do not a see a form with similar fields to the QueryTask in Workflow, it may be that your map service doesn't suport Query operations. If you go into ArcGIS Server Manager and edit this service, on the Capabilities tab you should be able to enable Query operations.
-Victoria
0 -
I know this is a few years old, but I'm running into the exact same situation. I've followed the steps above and when I try just sending the url that ends in "query?" it still says 'Specified method is not supported'. I checked the service in ArcGIS Server manager and Query operations were already enabled. Is there anything else I can do to see where this is stopping? 0
Please sign in to leave a comment.
Comments
4 comments