I have a basic AR that updates the value in a child table field when the corresponding parent field is updated (Enterprise Geodatabase...GlobalID to GUID relationship). When this is the only AR enabled, everything works as it should. However, when used in conjunction with another AR set on the child table, I receive the error "The evaluation of attribute rules is cyclic or exceeds maximum cascading level" when I update the parent field value.
Note: The 2 rules I'm using in conjunction do not use any of the same fields
See the code below. Any help would be greatly appreciated! @JohannesLindner @HusseinNasser2
if ($originalfeature.PARENT FIELD == $feature.PARENT FIELD) {
return
}
var fs = FeatureSetByRelationshipName($feature, "RELATIONSHIP CLASS");
var updates = []
for(var f in fs) {
if(f.GlobalID == $feature.GlobalID) { continue }
var u = {
globalID: f.GlobalID,
attributes: {
"CHILD FIELD": $feature.PARENT FIELD
}
}
Push(updates, u)
}
return {
edit: [{
className: "CHILD TABLE NAME",
updates: updates
}]
}