I have attribute rules setup in my enterprise geodatabase on a point feature class. It's a fairly simple arcade expression that pulls the most recent inspection date from a related table.
var inspTable = OrderBy(FeatureSetByRelationshipClass($feature, 'DBO.Outfall_to_IDEPScreening'), 'ObsDateTime DESC');
var mostRecent = First(inspTable);
If(!IsEmpty(mostRecent))
Return mostRecent.ObsDateTime;
Else
Return null;
The rule works great in ArcGIS Pro. When I republish the service, the layer will not load in Field Maps. However, it will load in the ArcGIS Online map viewer without issue. After much searching, ChatGPT tells me that attribute rules are not fully supported in Field Maps.
Anyone have any insight on this issue? I think my workaround will be to implement the arcade on the fields in the web map. This creates the problem where the data is only updated in the web map, I would like it to be updated regardless of where/when an edit occurs.
Thanks!
Darryl Albert
Solved! Go to Solution.
As per tradition, ChatGPT is subtly incorrect: you can't author attribute rules in the Field Maps designer, but if you're using a registered feature service with attribute rules those can work just fine. A couple of things to check:
As per tradition, ChatGPT is subtly incorrect: you can't author attribute rules in the Field Maps designer, but if you're using a registered feature service with attribute rules those can work just fine. A couple of things to check:
Thanks David, that solved my problem. I appreciate your response, I spent way to much time trying to figure that out. It was the FeatureSetByRelationshipName that solved it.
I was getting an error in the Field Maps app saying I needed a newer version of runtime, so that explains it.
Thanks!
Darryl