laptop and a wrench

漏洞

Adding values to more than one attribute to a related table through a calculation attribute rule results in an error: "Edit operation failed. The attribute rule returned a value, but no field was specified in the rule".

ArcGIS Pro
漏洞 ID 编号 BUG-000174676
已提交February 28, 2025
上次修改时间March 24, 2025
适用范围ArcGIS Pro
找到的版本3.2.1
操作系统Windows Server
操作系统版本2016 64 Bit
状态As Designed

附加信息

This is the intended design, but the rule is written incorrectly. A literal value cannot be returned if no field is assigned. Currently, the rule is not assigned to any field. However, there is an else statement that may execute and return a value of 101. If that branch is executed, 101 is returned without a designated field to store it. var gID = $feature.Foreign_Key var related_Features = Filter(FeatureSetByName($datastore, 'cities', ["CITY_FIPS", "STATE_CITY"]), 'GlobalID = @gID') var test = First(related_Features) if (!IsEmpty(test)){ return { "result" : {"attributes" : {"XY" : test.CITY_FIPS, "STATE_CITY" : test.POP1990}} } } else { return 101 } The user need to specify which field to return the 101 to or simply if they don't want to do anything replace it with return; var gID = $feature.Foreign_Key var related_Features = Filter(FeatureSetByName($datastore, 'cities', ["CITY_FIPS", "STATE_CITY"]), 'GlobalID = @gID') var test = First(related_Features) if (!IsEmpty(test)){ return { "result" : {"attributes" : {"XY" : test.CITY_FIPS, "STATE_CITY" : test.POP1990}} } } else { return; }

解决办法

As a workaround, create multiple rules for one table, where each rule will dedicatedly calculate the values for one field.

重现步骤

漏洞 ID: BUG-000174676

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项