SummarizeAttributeRules

Title  Report and Summarize Attribute Rules

Description

Generates a Mobile GDB that has a report of all the attribute rules in the workspace.

Usage

          
By default, you get a table and a series of views with statistics about the attribute rules in the database.
Optionally, you can get a summary of the batch validation errors and a series of views to provide various summaries.

License

Standard

Syntax

SummarizeAttributeRules (in_workspace, folder, {options})

Parameter Explanation Data Type
in_workspace Dialog Reference

The input geodatabase.

DEWorkspace
folder Dialog Reference

The folder where the results will be saved.

DEFolder
options (Optional) Dialog Reference

The data to export:

  • Summarize geodatabase error tables - Exports all the error table entries

GPString

Code Samples

SummarizeAttributeRules example 1 (Python window)

Creates a summary report of all attribute rules in the workspace.

import arcpy

arcpy.udms.SummarizeAttributeRules("D:/data/network.gdb", "D:/data")

SummarizeAttributeRules example 2 (stand-alone script)

Summarizes attribute rules and geodatabase errors.

import os

import arcpy

gdb = "D:/data/network.gdb"
folder = os.path.dirname(gdb)
options = ["VALIDATION_ERRORS"]

result = arcpy.udms.SummarizeAttributeRules(
    in_workspace=gdb,
    folder=folder,
    options=options,
)
print(result[0])