Label | Explanation | Data Type |
Input Table
| The table or feature class that will have the new rule applied. | Table View |
Name
| A unique name for the new rule. | String |
Type
| Specifies the type of attribute rule to add.
| String |
Script Expression
| The Arcade expression that defines the rule. | Calculator Expression |
Is Editable
(Optional) | Specifies whether the attribute value can be edited. Attribute rules can be configured to either block or allow editors to edit the attribute values of the field being calculated. This parameter is only applicable for the calculation attribute rule type.
| Boolean |
Triggering Events
(Optional) | Specifies the editing events that will trigger the attribute rule to take effect. This parameter is valid for calculation and constraint rule types only. At least one triggering event must be provided for calculation rules in which the Batch parameter is unchecked (batch = "NOT_BATCH" in Python). Triggering events are not applicable for calculation rules that have the Batch parameter checked (batch = "BATCH" in Python).
| String |
Error Number
(Optional) | An error number that will be returned when this rule is violated. This value is not required to be unique, so you may have the same custom error number returned for multiple rules. This parameter is required for the constraint and validation rules. It is optional for calculation rules. | String |
Error Message
(Optional) | An error message that will be returned when this rule is violated. It is recommended that you use a descriptive message to help the editor understand the violation when it occurs. The message is limited to 2000 characters. This parameter is required for the constraint and validation rules. It is optional for calculation rules. | String |
Description
(Optional) | The description of the new attribute rule. The description is limited to 256 characters. | String |
Subtype
(Optional) | The subtype to which the rule will be applied if the dataset has subtypes. | String |
Field
(Optional) | The name of an existing field to which the rule will be applied. This parameter is only applicable for the calculation attribute rule type. | String |
Exclude from application evaluation (Optional) | Specifies whether the rule will be excluded from evaluation before edits are applied. Because not all clients may have the capability to run all of the available rules, you can choose to flag a rule for simple clients only. For example, some rules may refer to data that has not been made available to all clients (reasons can include the data is offline, size, or security), or some rules may depend on the user or context (that is, a lightweight field update in ArcGIS Collector may not execute a rule that requires additional user input or knowledge; however, a client such as ArcGIS Pro may support it). This parameter is not applicable for validation rules or calculation rules if the Batch parameter is checked.
Note:Prior to ArcGIS Pro 2.4, this parameter was labeled Server only. | Boolean |
Batch
(Optional) | Specifies whether the rule evaluation will be executed in batch mode.
Calculation rules can be either checked or unchecked. Validation rules are always checked for this parameter, and constraint rules are always unchecked. Batch rules are only supported for data with branch versioning enabled. | Boolean |
Severity
(Optional) | The severity of the error. A value within the range of 1 through 5 can be chosen to define the severity of the rule. A value of 1 is high, being the most severe, and a value of 5 is low, being the least severe. For example, you can provide a low severity for a specific attribute rule and ignore the error during data production workflows, or set a high severity in which the error would need to be fixed for accuracy of data collected. This parameter is only applicable to validation rules. | Long |
Tags
(Optional) | A set of tags that identify the rule (searchable and indexable) as a way to map to a functional requirement in a data model. | String |
Derived Output
Label | Explanation | Data Type |
Attribute Rule Added | The updated input table with an attribute rule added. | Table View |