laptop and a wrench

Bug

PolygonBuilderEx.ToGeometry returns an exception, "Destination Array was not long enough. Check the destination index, length, and the array's lower bounds. (parameter 'destinationArray')".

Last Published: October 18, 2022 ArcGIS Pro SDK for .NET
Bug ID Number BUG-000152782
SubmittedOctober 5, 2022
Last ModifiedJune 16, 2025
Applies toArcGIS Pro SDK for .NET
Version found3.0
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed3.1
StatusFixed

Workaround

Use the PolygonBuilderEx.CreatePolygon() method. For example, Polygon polygon = PolygonBuilderEx.CreatePolygon(part, spatialReference);

Steps to Reproduce

Bug ID: BUG-000152782

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