laptop and a wrench

Error

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

Última publicación: December 8, 2022 ArcGIS Field Maps
Número de ID del error BUG-000151657
EnviadoAugust 18, 2022
Última modificaciónSeptember 26, 2025
Relacionado conArcGIS Field Maps
Versión encontrada22.2
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoWill Not Be Addressed

Información adicional

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)

Solución alternativa

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)

Pasos para reproducir

ID del error: BUG-000151657

Software:

  • ArcGIS Field Maps

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga