Hello all,
I'm using the Editor widget in my app to modify a feature layer. I'm using editor.startCreateFeaturesWorkflowAtFeatureCreation.
Since upgrading to @arcgis/core 4.32.9 or 4.32.10, when I attempt to access it, I get this:
esri.widgets.Editor.EditorViewModel] s {name: 'Error', details: Error: no geometry type
If I roll back to 4.30.5 without changing anything else, everything works fine. I tried 4.31.6 and I'm getting the same "no geometry type" error.
The feature layer's geometryType is "polygon". One oddity is that although there are feature templates stored in the service which I can verify in the ArcGIS REST Services Directory view, I can't access the templates (i.e., when logged, featureLayer.templates has a length of 0). I'm not sure why that is, or why it didn't cause problems in 4.30. It is a group layer but I'm able to edit other individual feature layers within this group with no problems.
Apologies for not being able to share the code or a link to the layer.
Would appreciate any ideas for what I can look into. My best guess is that it's related to the templates and possibly the Editing shared templates update in 4.32, but not sure how to tackle. Anyone seeing anything related?
Dropping my own answer here in case it helps anyone else. I republished the layer with no symbology and it resolved the issue.