Skip to main content

Geocortex.Workflow.WorkflowException: Unhandled exception: 'One or more errors occurred.' in activity '1.3: QueryTask'

Comments

4 comments

  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Permanently deleted user
    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.