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 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项