laptop and a wrench

不具合

In ArcGIS Pro 3.1, when the user-defined function is declared within a loop in the Arcade script, it returns the following error message, "Invalid expression. Function declaration only at global scope".

最後に公開された状態: March 9, 2023 ArcGIS Pro
不具合 ID 番号 BUG-000156393
送信されましたMarch 7, 2023
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン3.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスAs Designed

参考情報

Functions cannot be declared within a ‘for’ or ‘if’ statement. Declare the function outside the statement to use it.

対処法

When the user-defined functions are declared outside the loop in the Arcade script, it works correctly with no issues in ArcGIS Pro 3.1.

再現の手順

不具合 ID: BUG-000156393

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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