laptop and a wrench

Bug

The Guid() Arcade function does not evaluate in the smart form in ArcGIS Field Maps.

Zuletzt veröffentlicht: December 8, 2022 ArcGIS Field Maps
Bug-ID-Nummer BUG-000151657
EingereichtAugust 18, 2022
Zuletzt geändertSeptember 26, 2025
Gilt fürArcGIS Field Maps
Gefunden in Version22.2
BetriebssystemN/A
BetriebssystemversionN/A
StatusWill Not Be Addressed

Zusätzliche Informationen

The expression is not correct. Each time the expression evaluates, a new GUID is returned, leading to an infinite loop. Define a GUID initially and check if the field value contains a GUID. If it is empty, create and assign a GUID using the Guid() function. If not empty, return the current GUID field value. For example, to calculate a random GUID in a field, use the following expression and replace FIELDNAME with the name of the field: var id = $feature.FIELDNAME IIf(id==null, guid(), id)

Workaround

Define a GUID initially and check if the field value contains a GUID. If it is empty, create and assign a GUID using the Guid() function. If not empty, return the current GUID field value.

For example, to calculate a random GUID in a field, use the following expression and replace FIELDNAME with the name of the field:

var id = $feature.FIELDNAME

IIf(id==null, guid(), id)

Schritte zur Reproduzierung

Bug-ID: BUG-000151657

Software:

  • ArcGIS Field Maps

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln