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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動