laptop and a wrench

Erro

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

Última Publicação: December 8, 2022 ArcGIS Field Maps
Número de ID do Erro BUG-000151657
EnviadoAugust 18, 2022
Última ModificaçãoSeptember 26, 2025
Aplica-se àArcGIS Field Maps
Versão encontrada22.2
Sistema OperacionalN/A
Versão do Sistema OperacionalN/A
StatusWill Not Be Addressed

Informações Adicionais

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)

Solução Provisória

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)

Etapas para Reproduzir

ID do Erro: BUG-000151657

Software:

  • ArcGIS Field Maps

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download