laptop and a wrench

漏洞

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

上次发布: December 8, 2022 ArcGIS Field Maps
漏洞 ID 编号 BUG-000151657
已提交August 18, 2022
上次修改时间September 26, 2025
适用范围ArcGIS Field Maps
找到的版本22.2
操作系统N/A
操作系统版本N/A
状态Will Not Be Addressed

附加信息

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)

解决办法

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)

重现步骤

漏洞 ID: BUG-000151657

软件:

  • ArcGIS Field Maps

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项