Reorders the evaluation order of an attribute rule.
When rules are evaluated, the evaluation order controls the sequence in which the rules are evaluated. The evaluation order is important when there are dependencies on calculated fields since the result could be impacted if the rules are in a different order.
This tool requires an exclusive schema lock on the input feature class or table.
This tool must be run using a connection to the enterprise geodatabase as the data owner.
ReorderAttributeRule_management (in_table, name, evaluation_order)
The table that contains the attribute rule.
The name of the calculation rule that will have its evaluation order altered.
The new evaluation order value for the rule. For example, if you have 5 rules and this rule is ordered to execute last (the fifth position) but you want it to be evaluated in the second position, enter the value 2. The evaluation order values for the rules after position 2 will be reassigned to follow this rule (for example, position 2 becomes position 3, position 3 becomes position 4, and position 4 becomes position 5).
The input table with its attribute rule evaluation order updated.
Use the ReorderAttributeRule tool to update the evaluation order of a calculation rule named calculateRuleLabel to be evaluated first.
import arcpy arcpy.ReorderAttributeRule_management("C:\\MyProject\\sdeConn.sde\\progdb.user1.GasPipes", "calculateRuleLabel", 1)
- Basic: No
- Standard: Yes
- Advanced: Yes