I'm using a Attribute Calculation Rule in ArcGIS Pro 3.0.2. It's a line featureclass in a fgdb. I checked "Exclude from application evaluation and triggered Insert und Update. The following very simple code is working when I alter the geometry:
var feature_ = $feature;
return {
"edit": [{
"className": "HydroEdgePro",
"updates": [{
"objectID": feature_["OBJECTID"],
"attributes": {
"BEMERKUNG": "test 2"
}
}]
}, {
"className": "arcade_log",
"adds": [{
"attributes": {
"Value": "test"
}
}]
}]
}
If I try to do something with the $FeatureSet (see example below) then I always get the Error "The evaluation of attribute rules is cyclic or exceeds maximum cascading level.":
var feature_ = $feature;
var features = $FeatureSet;
var test = Count(features);
return {
"edit": [{
"className": "HydroEdgePro",
"updates": [{
"objectID": feature_["OBJECTID"],
"attributes": {
"BEMERKUNG": "test 2"
}
}]
}, {
"className": "arcade_log",
"adds": [{
"attributes": {
"Value": "test"
}
}]
}]
}

I don't understand why this happens. During debug mode the code is working.