laptop and a wrench

Bug

If several simultaneous points with the same coordinates are passed to the PolylineBuilder, the exception "System.ArgumentException: Destination array was not long enough" is returned when calling PolylineBuilderEx.ToGeometry().

Last Published: October 17, 2022 ArcGIS Pro SDK for .NET
Bug ID Number BUG-000153013
SubmittedOctober 14, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS Pro SDK for .NET
Version found3.0
Operating SystemWindows OS
Operating System Version10.0
StatusDuplicate

Additional Information

This issue is fixed and to be included in an upcoming patch.

Workaround

Use PolylineBuilderEx.CreatePolyline(IEnumerable points, SpatialReference spatialReference = null), and if a builder is required, use the PolylineBuilderEx(Polyline polyline) constructor.

Steps to Reproduce

Bug ID: BUG-000153013

Software:

  • ArcGIS Pro SDK for .NET

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options