Skip To Content

Create constraint rules

Available with Data Reviewer license.

Constraint rules are a form of data validation that can be used to enforce data integrity while creating and editing data. These rules are created using the Attribute Rules view and tab. The Attribute Rules view contains a list of rules configured for a specific geodatabase feature class or stand-alone table.

Attribute Rules view

1

Attribute Rules view

2

Row header

3

Rule item

The rule's details pane, in the Attribute Rules view, displays input parameters for the check and will vary depending on the type of check used to implement the rule. Each of these parameters has pop-up help that you can view by hovering over the information icon Information next to the parameter.

Attribute rules details panel

1

Attribute rules details pane

2

Rule and check type

The Attribute Rules tab contains tools for creating and managing attribute rules. The tab is automatically displayed when the Attribute Rules view is active.

Attribute Rules tab

1

Attribute Rules tab

2

Ready to Use Rules, which contain Reviewer checks

3

Rule management tools

Author a constraint rule

Complete the following steps to create a constraint rule:

  1. In the Catalog pane, expand the enterprise geodatabase connection that contains features that require automated validation.
    Note:

    Attribute rules are currently only supported on datasets in an enterprise geodatabase. The minimum client version required to access a dataset with attribute rules is ArcGIS Pro 2.1.

  2. Right-click a feature class or a stand-alone table and click Design > Attribute Rules.

    The Attribute Rules view and tab appear.

    Note:

    The view is read-only when accessed from a web feature layer or a database connection using a non-data owner user account.

  3. On the Attribute Rules tab, click Ready to Use Rules Ready To Use Rules and click the check required to implement the rule.
  4. In the check's details pane, in the Attribute Rules view, configure the check's required parameters, indicated by a red asterisk next to the parameter name. When all required parameters contain valid values, the rule is ready for use.
    Note:

    Rules highlighted in red are invalid and will not be stored when the project is saved. Help for rule errors is available and can be viewed by hovering over the row header.

  5. Optionally configure the parameters contained in the Details section to facilitate data quality reporting and corrective workflows.
  6. Click Save Save on the Attribute Rules tab to save your new rules in the geodatabase.
  7. Close the Attribute Rules view to exit rule design, or create another rule from the Ready to Use Rules gallery.
In this topic
  1. Author a constraint rule