laptop and a wrench

漏洞

The Arcade expression DomainName() does not work as expected with an attribute in ArcGIS Online.

上次发布: March 8, 2019 ArcGIS Online
漏洞 ID 编号 BUG-000120493
已提交March 2, 2019
上次修改时间June 5, 2024
适用范围ArcGIS Online
找到的版本N/A
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Will Not Be Addressed

附加信息

According to https://developers.arcgis.com/arcade/guide/logic/ "For more complex expressions, we suggest you explicitly list all field attributes that will be used in the execution of the script at the top of the expression. This will ensure the profile, app, and map all request the appropriate fields so the expression executes properly." This is a known limitation with dynamically optimizing queries and field declaration. When writing expressions it is always best to declare the field first to ensure that it behaves accordingly. For example: $feature.COLLEGE; $feature.POPULATION; Round(($feature.COLLEGE / $feature.POPULATION) * 100, 2);

解决办法

Add description in the field instead.

Or

Declare the field at the start of the expression so that it gets requested.

For example:

$feature.Domain //the field name of the domain

DomainName($feature, "Domain")

重现步骤

漏洞 ID: BUG-000120493

软件:

  • ArcGIS Online

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项