Geometry Picker workflow in Workflow 5 fails on WKID being Undefined
When I use the geometry value from the Geometry Picker in Workflow 5 in a Query Task, the activity fails because the WKID is Undefined. I can see the output geometry from the selection, and I can see the geometry value as the input to the Query Task. Both seem normal and both have a defined WKID. The Query Task fails. I've checked that I have a Propagate Form Event in my Change event in the Display Form element.
Any ideas would be welcome . . .
-
Did you ever resolve this issue? I'm having the same problem. I thought it was fixed by adding a Project Geometry activity between the Geometry Picker and Query activities, but it doesn't work if there are multiple geometries. Single geometry works.
The input for the Project activity is =$formGeoPicker.state.geometryPicker1.value.geometry
and I defined an output spatial reference (102100).
The input for the Query activity is
=$projectGeometry1.results (this is how multiple geometries get passed) It doesn't matter if I specify an output spatial reference or not, still fails.
I can see the geometries in the log, but it fails on the Query activity with Cannot read property 'wkid' of undefined.
Anyone?
0 -
I am having the same issue. The geometry is already defined as 102100, so I do not see why we would need to reproject it.
0 -
I think this is a"workaround" that Amanda sent me. If you take the Geometry Picker result and use it in a Create Feature activity:
Create Feature - [id queryGeometryFeature]
Geometry =$formSearch.state.geometryPicker1.value.geometry[0]
The you can put the feature geometry in a variable:
=$queryGeometry.result =$queryGeometryFeature.feature.geometry
Then use the geometry variable in your Query task.
I put my geometry into a variable because I may be getting my geometry from multiple places, but you could use the feature geometry directly in the Query Task. Basically, everything loves a feature. Values and results from other activities, not so much.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer