laptop and a wrench

Bug

The Arcade documentation classifies the polyline type's paths property as a number but incorrectly returns a point type.

Last Published: July 13, 2022 No Product Found
Bug ID Number BUG-000147645
SubmittedMarch 16, 2022
Last ModifiedJune 8, 2025
Applies toNo Product Found
Version foundN/A
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed1.23
StatusFixed

Additional Information

This is a documentation issue and not a bug in the code. The documentation for the geometry types and geometry functions is updated to properly reflect the ways geometries can be constructed and what the actual types of the rings and paths are within each type.

Workaround

  • Use the JavaScript Object Notation (JSON) directly or convert a polyline back to JSON. The code below returns the x-coordinate:

return polylineJSON.paths[0][0][0];

  • If working directly with the point objects within the polyline object, call the property of a point data type, instead of using an index. The code below returns the x-coordinate:

return poly.paths[0][0].x;

Steps to Reproduce

Bug ID: BUG-000147645

Software:

  • No Product Found

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