Exception on editing existing graphics overlays on the Mapview

08-29-2017 11:06 AM
New Contributor

arcgis.gis arcgisruntimeenvironment‌arcmap editing

I am currently exploring creating and editing shapes on the map control. We currently have two types of graphics being displayed on the map, ones added via the SketchEditor and ones via graphics created from pre-existing geometries. The shapes created via the SketchEditor can be edited just fine; however, editing the pre-existing geometries results in the following exception: **"#System.ArgumentException: Value does not fall within the expected range." as soon** as I click on a point on the graphic.

Can anyone assist me in determining what is causing the exception when trying to edit the pre-existing geometries on the map?


Exception = {System.ArgumentException: Value does not fall within the expected range.

at Esri.ArcGISRuntime.Geometry.Part.AddPoint(MapPoint point)
at Esri.ArcGISRuntime.UI.SketchEditor.AddVertexToPartCollection(MapPoint mapPoint, VertexPosition vertexPosition)
at Esri.ArcGISRuntime.UI.SketchEditor.AddPoint(MapPoint mapPoint)
at Esri.ArcGISRuntime.UI.SketchEditor.<MapView_GeoViewTapped>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()

0 Kudos
0 Replies