Hello,
I have a 1:M relationship class that relates a residences wastewater load (gallons) to the basin they reside in. I created a field (TGallons) in the basin feature (Basins_Pop_Employ_2021_22_TESTENV) with a calculation attribute rule to be populated with the total gallons of all residences in that basin. As an attribute rule, the field (TGallons) will not populate when features are added to the relationship class, are modified/updated, or deleted from it. If I use the same Arcade expression in field calculator, the field will populate with the total number of gallons for the related customers. Why would the attribute rule not trigger? The arcade expression I used is shown below.
var related = FeatureSetByRelationshipName($feature, "Basins_Pop_Employ_2021_22_TESTENV_CAF_Addresses_TESTENV")
return sum(related, "gallons")
Any help would be appreciated.
Thanks!