Skip To Content

Attribute Rules view

The Attribute Rules view is used to view and manage existing rules as well as create rules. Rule management includes tasks such as changing rule properties, importing and exporting rules, deleting rules, and so on.

The Attribute Rules view displays existing attribute rules and their properties for a specific dataset. To create attribute rules or manage existing rules, the view must be accessed from a database connection as the data owner. The view is read-only when accessed from a web feature layer or from a database connection as a user that is not the data owner.

Learn more about attribute rules and their properties

Open the Attribute Rules view

The Attribute Rules view can be opened from the following locations:

  • Catalog pane—Right-click a feature class or table and click Design > Attribute Rules.
  • Contents pane—Right-click a layer or table and click Design > Attribute Rules.
  • Ribbon—Select a layer or table in the Contents pane. On the Feature Layer contextual ribbon, click the Data tab, and click Attribute Rules in the Design group.

Navigational sections

When you open the Attribute Rules view, you can view the various rule types by clicking the Calculation, Constraint, or Validation tab. Existing rules are displayed on each tab with each row representing an individual rule. When you select a rule, the rule properties appear in the details pane on the right side of the view.

The visible columns in the rule list can be modified using the Columns button. Attribute rules can also be filtered using the Filter button with rule properties. The filter uses the visible columns in the rule list.

Attribute Rules view

ElementDescription
1

Tabs are used to switch between the Calculation, Constraint, and Validation rule types.

2

Rules are listed in the grid section of the view. The columns can be customized to show more or less detail for each rule.

3

The details pane includes the properties of the selected rule from the grid and is also used to enter properties during the creation of rules.

Navigational sections of the Attribute Rules view

Create an attribute rule

Attribute rules can be created in the Attribute Rules view or using the Add Attribute Rule tool. Before you create an attribute rule, ensure the data source is from an enterprise geodatabase using a database connection with an exclusive lock on the underlying dataset.

Caution:
Adding attribute rules impacts backward compatibility for the dataset.
  • Datasets with attribute rules can no longer be used by ArcGIS Pro releases prior to 2.1 or ArcMap clients.
  • Datasets with attribute rules that use new Arcade functionality are not backward compatible. Reference the ArcGIS Arcade Version matrix and Release notes for more information.

To create an attribute rule in the Attribute Rules view, complete the following steps:

  1. In the Catalog pane, expand an enterprise geodatabase connection created as the data owner.

    Tip:
    If the dataset or table is in an active map view, the Contents pane can be used.

  2. Right-click a dataset or table and click Design > Attribute Rules.

    The Attribute Rules view opens and the contextual ribbon is displayed.

  3. In the Add Rules group on the Attribute Rules tab, click the button for the desired attribute rule type you want to create.

    Add Rules group

    The rule type selected is activated in the Attribute Rules view, and the details pane appears where you'll input details for the new rule.

  4. In the details pane of the Attribute Rules view, enter the properties for the new attribute rule.

    Each rule type has required parameters that are indicated by a red asterisk Red asterisk.

    The script expression has Arcade requirements depending on the attribute rule type. Reference the Arcade profile for the requirements for the specific type of attribute rule.

    Also see Attribute rule script expressions.
  5. Click the Save button Save on the Attribute Rules tab.
  6. The attribute rule is created for the dataset.

Manage attribute rules

Once attribute rules are established on a dataset, they can be managed using the Attribute Rules view. The view allows you to interact with attribute rules for the dataset or layer in which the view was opened from. When the view is active, the Attribute Rules group on the ribbon contains tools and commands to manage rules. These tools can be used in conjunction with interacting with the view and details pane.

Attribute Rules group
  • Delete Rule—Delete the selected rule in the view.
  • Import Rules—Import attribute rules from a CSV file.
  • Export Rules—Export attribute rules to a CSV file.
  • Enable Rule—Enable the selected rule in the view.
  • Disable Rule—Disable the selected rule in the view.
  • Save—Commit edits made in the view.

Modify existing rule properties

After attribute rules are created, certain properties can be modified using the Attribute Rules view. Making changes to an attribute rule requires an exclusive lock on the underlying dataset.

The following properties can be modified:

  • Description
  • Error Number
  • Error Message
  • Tags
  • Disable check box (under Execution section)
  • Evaluation order (Calculation rules)

To make changes to an existing attribute rule, complete the following steps:

  1. In the Catalog pane, expand an enterprise geodatabase connection created as the data owner.

    Note:
    If the dataset is in the active map view, you can use the Contents pane.

  2. Right-click the dataset and click Design > Attribute Rules.

    The Attribute Rules view opens and the contextual tab is displayed on the ribbon.

  3. In the Attribute Rules view, select the rule type for the rule you want to modify.
    • Calculation
    • Constraint
    • Validation
  4. Select the rule that you want to modify by clicking the specific row.

    The details pane displays the rule properties.

  5. In the details pane, make changes to any of the following rule properties:

    • Description
    • Error Number
    • Error Message
    • Tags
    • Disable check box (under Execution section)

    Tip:
    Changes to certain rule properties require the rule to be deleted and re-created. Rule properties that cannot be modified are read only.

  6. Calculation rules only: Optionally change the evaluation order. Click the Calculation tab in the view. In the rule list section of the view, modify the Order column value for the rule you want to move in the evaluation order.
  7. Click the Save button Save on the Attribute Rules tab.
  8. The properties for the attribute rule are updated.