Hoppa till huvudinnehållet

Query Task using geometry (Overlaps) is returning an error

Kommentarer

4 kommentarer

  • Berend Veldkamp
    Some things I'd check first:
    • Does geoLot have it's spatial reference set?
    • Does fsLot contain any features at all?
    • Is there anything relevant in the ArcGIS server log?
    • Is that Query Task really the activity that breaks? The name of the activity in the Alert does not match (e.g. Zone Selection vs Selection de la zone) Or did you translate it in the mean time? If you're not sure, type 1.79 in the workflow designer's search box to select the activity.
    If the above does not help, you could try to wrap the query task inside a Try Catch activity, and inspect the resulting exception, and inner exceptions, if any.
    0
  • Zack Robison
    Some things that stand out to me:

     

    First, like Berend said, the activity names aren't matching up.  Perhaps you made a change between taking both images, but perhaps you have identified the wrong source for your problem.

     

    Secondly, your error is very general but typically errors on queries have slightly more information.  Check that yocan access that url from the essentials server, check that you don't need credentials, and if that all looks good I'd hit the rest enpoint directly with your geometry to see if you can get more information from the server.  Use the featureset.toJson method on your fsLot to get that geometry, if it is indeed the zone query that is your problem. 
    0
  • Permanently deleted user
    Hi,

     

    1- geoLot is the result of the GeometryCaptureType.MapPoint activity. I didn't set it's spatial reference. Where can'I do that?

     

    2- fsLot contains features.I also verified that in the workflow by inserting an Alert activity to show tne number of features selected by the first query that uses the result (geoLot) of GeometryCapture activity.

     

    3- I did translate le display name of the activity and 1.79 in the search box points to Zone selection activity

     

    I have acces to the Essentials server and will try your suggestions.

     

    Thank you very much!
    0
  • Permanently deleted user
    Hi Badradine,

     

    The spatial reference of the Geometry returend by Capture Geometry activity will always match the spatial reference of the map.

     

    The spatial reference of the map is set by the bottom-most map service.

     

    I usually use a Get Map Info activity to get the spatial reference from the map at the start of the workflow, so I have it in a variable and otherwise don't need to keep track of it.

     

    Regards,

     

    -Malcolm
    0

Du måste logga in om du vill lämna en kommentar.