Select to view content in your preferred language

Attribute Rules - Triggers

59
1
4 hours ago
MaricadiGirolamo
New Member

Hello,
I see that when we create an Attribute Rule for Calculation it is possible to select the Triggers (Insert, Update and Delete); however, I don't find this option when creating an Attribute Rule for Validation.
Is this not an option, or am I missing something?

Is there a work around? Should I change my Validation rule to a Calculation rule instead?

Thanks for any help.

0 Kudos
1 Reply
JayasriB
New Contributor
You are not missing anything! Validation rules don't have triggers because they are batch-driven they only run when you manually click Evaluate Rules, not during live edits
Switch to a Constraint Rule
  • If you want to block bad edits in real time, use a Constraint Rule.
  • These do have Insert and Update triggers and reject bad data instantly

Keep Validation, but Fake Triggers with Arcade

  • If you want to keep it as a Validation rule but only check updated features, use this Arcade snippet:
  • if ($feature.created_date == $feature.last_edited_date) return true; // Skips new inserts

Calculation rules are built to populate fields, not evaluate errors. Using them for validation can cause database issues.

 
 
0 Kudos