laptop and a wrench

Bug

The Guid() Arcade function does not evaluate in a smart form in Map Viewer (ArcGIS API for JavaScript 4.x).

Last Published: August 26, 2022 ArcGIS API for JavaScript
Bug ID Number BUG-000151856
SubmittedAugust 25, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.24
Operating SystemN/A
Operating System VersionN/A
StatusNon-Reproducible

Additional Information

This issue is not reproducible in ArcGIS Online Map Viewer. The Guid function evaluates as expected.

Workaround

  1. Open the feature layer's Data tab from the item details page.
  2. In the table view, click the name of the new field, then click Calculate.
  3. Click Arcade.
  4. Type in the expression: return Guid().
  5. Click OK.
  6. All records are updated as expected.
  7. Alternatively, add the feature layer to a map in ArcGIS Pro, run the Feature Class To Feature Class tool to create a local copy of the feature layer, run the Add Global IDs tool, and overwrite the existing feature layer.

Steps to Reproduce

Bug ID: BUG-000151856

Software:

  • ArcGIS API for JavaScript

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