laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000174676
EingereichtFebruary 28, 2025
Zuletzt geändertMarch 24, 2025
Gilt fürArcGIS Pro
Gefunden in Version3.2.1
BetriebssystemWindows Server
Betriebssystemversion2016 64 Bit
StatusAs Designed

Zusätzliche Informationen

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; }

Workaround

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

Schritte zur Reproduzierung

Bug-ID: BUG-000174676

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln