Hi,
I have an odd problem and can’t seem to figure out where this goes wrong. I have various feature classes containing attribute rules that get triggered upon inserts and upon updates. The insert happens through a group edit template, with the primary builder being a line object and the secondary builder creates a point halfway along the line.
When I draw a new line object using this group template, the two builders get correctly drawn, but the evaluation result from various attribute rules do not appear in the attributes of the newly created features.
As shown in the picture below, the fields ‘Code’ and ‘WOBI’ on object Brug are Null, and field ‘WOBI’ on object Brug lijn is also Null. These fields should be filled with calculation attribute rules upon an insert.
However, the debug logging in the ArcGIS Server Manager from this feature service, does show that the associated attribute rules get triggered and seem to execute normally. As shown below.
When I save the ArcGIS Pro project and restart ArcGIS Pro, and take a look at the just edited objects, all the necessarily fields are filled and do contain a value. I also tried refreshing the map/redraws features and did a refresh on the feature service connection in the datasource content pane. But both things did not make the calculated values visible, only restarting ArcGIS Pro works.
I’m curious if anyone in the community knows the cause. Thanks!
Likely some relevant things:
ArcPro as a client is horrible about refreshing. The refresh buttons rarely work. Both the attribute pane and attribute table are horrible about this.
You've confirmed that the calculation triggered, and restarting prod makes the populated values visible. The only thing that works for me is manually typing in one of the feature's other fields (& then deleting it). Manual entry interaction often forces the pane itself to redraw, which is less time-consuming that restarting Pro but still extremely frustrating. It's not just Attribute Rules, ModelBuilder & ArcNotebook display similar behavior where "calculated" values fail to trigger a view refresh.
Can you try installing fiddler and capture the applyEdits call? What does the response looks like?
Pro should refresh the map with updated features on the backend, the applyEdits returns a payload called "ServiceEdits" which tells the client the updates that have been made to the server (this includes attribute rules )
Capture what the request parameters (there should be returnEdits or returnServiceEdits parameter) and in the response there should be the edited features payload