attachmentmanager workflow: No feature was found at that point
Downloaded the AttachmentManager from the Code Gallery. Always get the message:
No feature was found at that point
Any ideas how to troubleshoot this to find out why I'm not able to select a feature (newbie to workflows). No modification to the downloaded workflow except adding some Alerts and debugging to try to figure out what is going wrong.
Geocortex 4.8.1.14
ArcGIS Server - one site
0
-
Welcome to Geocortex! I don't know that I've used that workflow, or if I have it was some time ago, but I was jsut working on an attachment workflow last week!
If I were you I'd start by identifying the activity which is causing the error... do you have that? It may tell you in the error, unless the message is coming from the workflow itself. In that case, it sounds like you're already using alerts to watch the workflow progress which is cool. You can use that method to identify the sticking point, or you can look for the workflow's text in the workflow designer using the top-most search bar (underneath the toolbar).0 -
It is failing at the Activity = "Get Features from Layer". The expression selectedFeature.Features.Count() > 0 is false and the message "No Feature was found at that point" appears.
I figured out that the variable attachmentLayerQueryUrl was being set to the map service REST endpoint, not the Layer REST endpoint.
Found the comment below in a student guide which led me down the right path:
"In your own organizational environment, depending upon the type of service that you
are using, you may need to further navigate to the layer’s REST endpoint."
So the Assign Query Url activity became
attachmentLayerQueryUrl = String.Format("{0}/{1}",AttachmentLayers(0).MapServiceUrl,AttachmentLayers(0).Id)
So the ability to select a feature point, in my case a valve, is working now.
To summarize, the out of the box workflow needs to be modified to use a Layer REST endpoint, not the Map REST endpoint to work in our environment0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer