laptop and a wrench

不具合

The DomainName($feature, 'fieldName') Arcade function returned empty in the Attribute Table when applied using the Calculate Field tool in ArcGIS Online Map Viewer

最後に公開された状態: July 23, 2021 ArcGIS Online
不具合 ID 番号 BUG-000140768
送信されましたJune 16, 2021
最終更新日June 5, 2024
適用対象ArcGIS Online
見つかったバージョン9.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスWill Not Be Addressed

参考情報

In this workflow, the DomainName() function is not passed to the necessary 3rd 'code' argument, which should refer to the field containing the codes to calculate the values with. In ArcGIS Pro, when the 3rd 'code' argument is not provided, the function passes whatever associated value is in the field provided that contains the domain (i.e. no matter the values provided in 'Test' prior to running the tool ["1", "2", "foo", "bar", " "], each value is replaced to match whatever values of the 'Domain' field). In ArcGIS Online, it is different and clears the values as there is no code to base the calculate upon. For this workflow, for both ArcGIS Pro and ArcGIS Online, the correct function is: DomainName($feature, "Domain", $feature.test) This takes in the values in 'test' as the codes to base the calculate upon and convert these using the 'Domain' field. If 5 records each contain the Test value "2", running the above command converts all of these values to "Apple". If a value does not match a code in the domain it remains unchanged.

再現の手順

不具合 ID: BUG-000140768

ソフトウェア:

  • ArcGIS Online

バグのステータスが変更されたときに通知を受け取る

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

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

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

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

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

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