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 that will be added.
| 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. Triggering events are not applicable for calculation rules that have the Batch parameter checked.
| 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 the same custom error number may be returned for multiple rules. This parameter is required for the constraint and validation rule types. It is optional for the calculation rule type. | 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 256 characters. This parameter is required for the constraint and validation rule types. It is optional for the calculation rule type. | 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 application will evaluate the rule locally before applying the edits to the workspace. Not all clients have the capability to run all of the available rules, so authors can exclude certain rules from client evaluation. 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 a data collection app may not run 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 rule or calculation rule types 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 run 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. | 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 must 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 (for searching and indexing) 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 |