Import Attribute Rules (Data Management Tools)
Summary
Imports attribute rules from comma-separated value files (.csv) to a dataset.
Usage
Note:
Once you import attribute rules to a dataset, the minimum client version for the dataset is ArcGIS Pro 2.1. This means that the dataset will no longer be available for use in ArcGIS Desktop.
This tool will only import rules that do not already exist for the dataset, it will not update existing rules. The uniqueness of a rule applied to a dataset is determined by the rule name, not the rule definition. For example, a feature class has two rules named Rule A and Rule B. If the input
.csvfile attempts to import rules named Rule B and Rule C, Rule C will be imported, but Rule B will not since a rule named Rule B already exists for the dataset.If a failure is encountered during import, the specific column and row that failed are indicated in an error message. The remaining valid attribute rules in the
.csvfile will be imported.This tool can be used in conjunction with the Export Attribute Rules tool.
License:
Rules created using ArcGIS Data Reviewer tools require a Data Reviewer extension license to import. A warning is returned when the imported
.csvfile contains a Data Reviewer-based rule and a Data Reviewer extension license is not available.If a warning is encountered during import, the specific row that failed is indicated in a warning message. The remaining valid attribute rules in the
.csvfile will be imported.The imported
.csvmust contain the following columns:Column
Description
Example
NAMEThe name of the rule.
constraintRuleOP
DESCRIPTIONThe rule description.
Operating pressure must be less than 300.
TYPEThe type of attribute rule.
CONSTRAINT, CALCULATION
SUBTYPEIf the dataset has a subtype and the subtype is used in the rule definition, this is the subtype name (also known as description) to which the rule is applied.
ALL
FIELDThe name of the field to which the rule is applied, if applicable.
CONDITION
ISEDITABLEA Boolean value that defines whether the attribute field is editable.
True or False
TRIGGERINSERTA Boolean value that defines whether the triggering events for the rule are set for insert edits.
True or False
TRIGGERDELETEA Boolean value that defines whether the triggering events for the rule are set for delete edits.
True or False
TRIGGERUPDATEA Boolean value that defines whether the triggering events for the rule are set for update edits.
True or False
SCRIPTEXPRESSIONThe ArcGIS Arcade script expression that defines the rule.
$feature.OPERATINGPRESSURE < 300ERRORNUMBERThe error number for the rule, if applicable.
99
ERRORMESSAGEThe error message for the rule, if applicable.
Invalid operating pressure. The value must be less than 300.
EXCLUDECLIENTEVALUATIONA Boolean value that defines whether the rule is supported for all clients or simple clients.
True or False
ISENABLEDA Boolean value that defines whether the attribute rule is enabled.
True or False
BATCHA Boolean value that defines whether the rule supports batch validation.
True or False
SEVERITYAn integer value (1–5) that defines the severity of the error.
2
TAGSA set of string values that identify the rule.
Operating pressure
CATEGORYA system-generated integer value that defines the rule category, if applicable.
This value is system generated and should not be modified.
6
CHECKPARAMETERSA system-generated JSON value that defines the configuration of a Data Reviewer-based rule.
This value is system generated and should not be modified.
{"ReviewerRuleType": "0", "minimumangle": "60"}TRIGGERINGFIELDSA list of field values representing the fields where an edit occurs that will trigger the attribute rule.
Note:
An empty array defined as [] represents all fields as triggering fields. When no triggering fields are specified, all fields are listed as triggering fields.
["RoadCondition", "NumberOfLanes", "RoadType"]Note:
The export of attribute rules from ArcGIS Pro 3.4 or later will include the
TRIGGERINGFIELDScolumn in the output.csvfile. To import attribute rules from this file using an earlier version of ArcGIS Pro, remove this column from the.csvfile before importing.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Target Table |
The table or feature class to which the attribute rules will be applied. The dataset must have all the features specified in the rule definition. |
Table View |
|
Input File |
The |
File |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Attribute Rules Imported |
The updated input dataset. |
Table View; Raster Layer; Mosaic Layer |
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes