I have an Immediate Calculation Attribute Rule on a Feature Service Layer. This rule will check the value of an attribute and throw an ErrorMessage object if the requirements are not met. This rule is working as expected. In Pro I receive the error message and I also can confirm it is being logged at the Warning level in ESRI Server Manager Logs. When interacting with this rule in online maps via Portal for ArcGIS, I am noticing the behavior where the rule is firing and completing as expected, however the error message is never displayed. I can see the message in Server Logs and if I use the Batch Attribute Editor Widget, I can see the error message in the Developer Console, but it is never displayed to the user. While this does still prevent bad data from making it into the DB, the user will never know their edits were abandoned. Is there a way to display Attribute Rule ErrorMessages in web... besides the console?
Solved! Go to Solution.
Hi @CalebMeliesPearce ,
I'm just wondering if you should do this with an immediate calculation attribute rule and not a validation attribute rule. But when you use a constraint of validation attribute rule, you probably need to have validation capabilities enabled on the services and meet a couple of other requirements...
@XanderBakker unfortunately, validation attribute rules are only available for Deferred evaluation.
How are Attribute Rule ErrorMessages displayed in web maps via Portal for ArcGIS?