laptop and a wrench

漏洞

When attempting to use the 'Add New Row to Relationship' context menu operation with a feature class and a table in a relationship class, if a constraint type attribute rule is applied to the table, the action fails and returns the error message: "Edit operation failed".

ArcGIS Pro
漏洞 ID 编号 BUG-000174960
已提交March 12, 2025
上次修改时间June 24, 2025
适用范围ArcGIS Pro
找到的版本3.4.2
操作系统N/A
操作系统版本N/A
状态As Designed

附加信息

This is by design. In 2.9.13/3.x we fixed a bug with relationships and attribute rules where the rules were not triggering. That is why it "worked" in 2.9.3 because the rule was never triggering. Now with the fix, the Add new to relationship translates to two edits -> create a new row on the destination -> update the row to set the foreign key (this didn't happen before which was not correct) the second update doesn't have field value populated which causes the attribute rule to fail. To fix this you have can allow the update to happen if the foreign key is being updated by changing the rule as follows //prevent the edit only when the user makes an update, not when the foreign key gets updated if ( $feature.field == null && ($originalFeature.foreignkey == $feature.foreignkey) ) return false; //else allow the edit return true; alternatively you can set a default value for "field"

解决办法

Open the attribute table of the feature class, select a row or feature and click the Menu button (three lines) in the upper-right corner. Navigate to Related Data, select the related table and add rows directly.

重现步骤

漏洞 ID: BUG-000174960

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项