laptop and a wrench

不具合

The ArcGIS Pro Arcade expression builder fails to detect if the item returned from a First function may be null when the input array is from a filter function that filters data based on numeric attribute fields.

ArcGIS Pro
不具合 ID 番号 BUG-000167914
送信されましたMay 30, 2024
最終更新日August 2, 2024
適用対象ArcGIS Pro
見つかったバージョン3.3
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスAs Designed

参考情報

When using the First function always add a null check, at runtime if the passed featureset to the First function has no rows, the First function returns null. The validations done both by the expression builder and the at save attribute rules are very basic and do not catch all runtime errors, just like any other programming language. The expression builder uses the first row in the table if no rows are available in the table, an ephemeral in-memory row is created with default values to be used for validation, and the in-memory row is also used during save time. The expression builder may or may not catch the null error, the same thing with at save. So it is always recommended to handle null checks in the script.

対処法

When using the First function always add a null check if the returned row is null. That is because the featureset might be empty.

再現の手順

不具合 ID: BUG-000167914

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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