"[WF: activity error] Cannot read property 'OBJECTID' of undefined"
I've created a feature set from features I've created on the fly in a workflow. When I try to do a Show Results activity against a map service layer in my site with this featureset, I get the following:
"[WF: activity error] Cannot read property 'OBJECTID' of undefined"
Even though the feature has an OBJECTID attribute with a unique Int32 value in it.
How can I convince the Show Results that my features are pure of heart?
-
Well, I've gotten past the OBJECTID error, and the Show Results is showing results - sort of. The activity returns two features with the configured collection name, servide id and layer id, but the displayed Results List isn't getting this information. The Layer Display Name comes across as garbage text (e.g. XazyAthF, etc.) and the result details are empty.
See attached images.
0 -
Hi Sean,
Check out this section of the GXWF docs: https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/visualization.htm#show-results-in-gvh
You will want to configure the display formatting of the results within the workflow to suit your application's needs.
Thanks, Stefan
0 -
I’m configuring the workflow to use the layer configuration in my application. It finds that configuration and I can see the correct values in my console, but the Results List in the viewer doesn’t seem to be getting these values from the Show Results activity. Is the fact that these features are created in the workflow, rather than being queried form a layer, affecting the Show Results ability to “see” them correctly? Is it possible to malform a feature when creating them on-the-fly? 0 -
Hi Sean,
You are correct. Since the results are not originating from a service currently on the site, they aren't directly tied with most of the functionality within the Results view.
Thanks, Stefan
0 -
So how exactly am I to make use of the Create Feature and Create Featureset activities? Is there a secret sauce that will allow me to see these features in my application? The instructions in the documentation for using the Show Results inputs don’t work for hand knit features, either. 0
Please sign in to leave a comment.
Comments
5 comments