Run validation rules

Available with the ArcGIS Indoors Pro or ArcGIS Indoors Maps extension.

After creating validation attribute rules in an Indoors workspace, you can use the Error Inspector pane to run validation checks on the data. When the rules are evaluated, error features are created in the error datasets and you can visualize them on the map using the floor filter. You can manage data errors in the Error Inspector pane, including viewing information about the error, selecting the features marked errors, and marking error features as exceptions. Once you finish addressing errors in the data, you can rerun the validation rules.

Learn more about managing attribute rule errors

Attribute rules can be run on data in a file geodatabase or in a branch versioned feature service. Each method has a slightly different workflow.

Run validation rules in a file geodatabase

Complete the following steps to run validation rules in a file geodatabase:

  1. Add floor plan layers to a map in ArcGIS Pro.
  2. In the Contents pane, right-click a floor plan layer and click Add Error Layers Group layer.

    The associated error layers are added as a single group layer, which is used to review errors in the Error Inspector pane.

  3. Configure the map as floor aware.
  4. Configure the Units and Details layers as floor aware.
  5. On the Edit tab, in the Manage Edits group, click Error Inspector Error Inspector.

    The Error Inspector pane appears.

  6. Click the drop-down arrow Drop-down button on the Evaluate Rules button Validate Extent to expand the options for evaluating rules.
    1. For Rule Type, ensure that the Validation Rules check box is checked.
    2. For Extent, choose one of the options:
      • Visible extent—Evaluate the visible extent of the map.
      • Full extent—If the source is a feature service, evaluate the full extent of the feature service. If the source is a geodatabase, evaluate the full extent of the data with attribute rules in the workspace.
  7. Click the Evaluate Rules button Validate Extent.
  8. Error features are created and displayed in the Error Inspector pane. You can manage attribute rule errors, including visualizing them using the floor filter and using them to select and fix floor plan data.

Run validation rules on a branch versioned feature service

If the Indoors workspace is an enterprise geodatabase, you must share the floor plan data and error layers as a branch versioned feature service with the Validation capability enabled to use validation attribute rules.

Learn more about sharing a dataset with attribute rules

Share a web layer with validation enabled

Complete the following to share a branch versioned feature service with validation enabled:

  1. Register the indoor dataset as branch versioned.

    When you enable branch versioning on the indoor dataset, all the feature classes in the dataset are registered as branch versioned, as well as the associated error datasets.

  2. Add the floor plan layers and four error layers to a map in ArcGIS Pro.

    You must add the four error layers manually. The Add Error Layers option is only available for branch versioned feature layers and layers from a file geodatabase.

  3. Configure the Levels, Units, and Details layers as floor aware.
    1. Right-click the layer in the map and click Properties.

      The Layer Properties dialog box appears.

    2. Click Floors and choose the Level ID field from the Floor Field drop-down menu.

      The layers are configured as floor aware. When you share the branch versioned feature service, these layers contain a floor-aware property. This property allows the Error Inspector tool to populate the LEVEL_ID field in the error layers when you run the validation rules. Setting these layers as floor aware before sharing the feature service is required.

  4. On the Share tab, in the Share As group, click the Web Layer drop-down arrow and click Publish Web Layer Publish Web Layer.
  5. In the Name text box on the General tab, provide a name for the web layer.
  6. Complete the Item Details fields for Summary and Tags.
  7. Under Data and Layer Type, confirm that Map Image is selected under Reference registered data.
  8. Click Feature to share the web feature layer as a dependent layer to the map image layer.

    For web feature layers to take advantage of attribute rules, they must reference registered data sources. This ensures that the data is not copied during the publishing process and is directly referenced by the service.

  9. Click the Configuration tab, and check the Validation check box under Capabilities.

    Enabling the Validation capability on the feature service is required if you want the feature layer to participate in validation workflows.

  10. Check the Version Management check box.

    This is required for the feature layer to participate in versioning and validation workflows.

    Note:

    If this option is not available in the Capabilities list, the source data for the layers may not be registered as versioned or may not have branch versioning enabled on the data store connection. You must address this before proceeding.

  11. Click the Configure Pooling button Configure Pooling near the top of the pane and choose the Dedicated Pooling option.
  12. Click Analyze to check for any errors or issues.

    You must resolve all errors. If any issues are discovered, they appear on the Messages tab. Right-click each message to get more information, read the help for the error or warning, and access suggested fixes.

    Learn more about analyzing GIS resources

  13. Once validated, click Publish to share the web layer.

Run validation rules

Once you have shared a branch versioned feature layer with validation enabled, you can add the floor plan layers to the map and run quality control checks on the data. For best performance, run validation rules with the Execute asynchronously option checked.

Complete the following to run validation rules using the Error Inspector pane:

  1. Add the floor plan layers from the branch versioned feature layer to a map in ArcGIS Pro.
  2. Configure the map as floor aware.
  3. Configure the Units and Details layers as floor aware.
  4. Optionally, create a new version of the feature service and change versions to run the validation rules on a branch version of the data.
  5. In the Contents pane, right-click a floor plan layer and click Add Error Layers Group layer.

    The associated error layers are added as a single group layer, which is used to review errors in the Error Inspector.

  6. On the Edit tab, in the Manage Edits group, click Error Inspector Error Inspector.
  7. Click the drop-down arrow Drop-down button on the Evaluate Rules button Validate Extent to expand the options for evaluating rules.
    1. For Rule Type, ensure that the Validation Rules check box is checked.
    2. For Extent, choose one of the options:

      • Visible extent—Evaluate the visible extent of the map.
      • Full extent—If the source is a feature service, evaluate the full extent of the feature service. If the source is a geodatabase, evaluate the full extent of the data with attribute rules in the workspace.

    3. For Options, choose Execute asynchronously.

      When this option is turned on, the validation rules are run on the service asynchronously. This uses the system ValidationTools geoprocessing service, which allows for long-running processes. This option is only available when the source is a feature service with the Validation capability.

    4. Optionally, choose Modified in this version.

      When this option is turned on, the validation rules evaluate edits made in the current branch version. This option is only available when the source is a feature service with the Version Management capability and connected to a branch version. This option is not available when evaluating rules using the default version.

  8. Click the Evaluate Rules button Validate Extent.

Error features are created and displayed in the Error Inspector pane and you can visualize them on the map using the floor filter if you configured the map as floor aware. You can manage attribute rule errors, including visualizing them using the floor filter and using them to select and fix floor plan data.