Issue with Editor Widget and polygons > 4.20

395
7
07-28-2021 01:56 AM
MatthieuThery1
Occasional Contributor

Hello,

We are having issues when using the Editor widget on some of our Feature Layers. It happens when we try and add a new polygon. It then crashes the widget and throws an error, so we're unable to add any features at all.

The error we're getting is the following 

MatthieuThery1_0-1627461825794.png

it was working ok in 4.18

 

edit: it seems it's affecting only layers that have Z values enabled. if that helps

Tags (3)
0 Kudos
7 Replies
JoseBanuelos
Esri Contributor

Hello @MatthieuThery1 ,

There is an existing bug submitted recently for this issue BUG-000141323. This is caused when creating polygons with z-values. Point and polylines still work. This bug was introduced when snapping was added to the SketchViewModel at 4.19. Even though you may not be using snapping, you can still run into this issue.

I apologize for this, we are actively working on this bug, and hope to get this fixed for version 4.21.

Thanks,

Jose

Sam_Berg
New Contributor III

Hi, we were also working through this problem and I just confirmed that republishing the data with has Z: false has worked around the above issue.  Many thanks to @ShawnGoulet1 for keying me into this.

0 Kudos
JoseBanuelos
Esri Contributor

Hello @Sam_Berg and @MatthieuThery1 ,

We have fixed this for version 4.21!

Thanks,

Jose

MatthieuThery1
Occasional Contributor

Hi, @JoseBanuelos 

Not sure if this is linked to the above but we found an issue that happens when we try to use the cancel() method on the SketchViewModel, while updating/reshaping a polyline.

We are getting the following error:

MatthieuThery1_0-1631288165048.png

 

which seems to be related to snapping. It was working fine in 4.19.

 

Thanks

0 Kudos
JoseBanuelos
Esri Contributor

@MatthieuThery1 ,
Can you provide a repro sample codepen? Can you provide the current version you are using, and the steps to reproduce this?


I tested this in 4.20 and our latest build today and I am not able to repro with SketchViewModel. There might be an additional step I'm missing that can lead to this issue.

Thanks,

Jose

0 Kudos
MatthieuThery1
Occasional Contributor

@JoseBanuelos 

Hi, I created a codepen here: https://codepen.io/mtrsklnkvMM/pen/xxrrLZP

I set the environment to 4.19, so as you can see the original behaviour. 

steps:

1-Create a single polyline

2-click to select it and then click a second time to enter "reshape mode"

3-Try to move the middle vertex

4-It splits the line in half

 

Now If I switch to 4.20, it crashes the map in codepen (throws the error mentionned above in our app too).

 

0 Kudos
JoseBanuelos
Esri Contributor

@MatthieuThery1 ,

Thanks for the repro sample and step, this is definitely an issue. We are looking into this, and thanks for bringing this up to our attention.

Thanks,

Jose

0 Kudos