ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data Namespace / AttributeRuleManager Class / UpdateErrors Method
A IEnumerable of one or more AttributeRuleError objects.

In This Topic
    UpdateErrors Method
    In This Topic
    Updates the validation error system tables specified by validationErrors. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    validationErrors
    A IEnumerable of one or more AttributeRuleError objects.
    Exceptions
    ExceptionDescription
    A validation service is not supported or enabled for this geodatabase.
    validationErrors is null or empty.
    A geodatabase-related exception has occurred.
    Remarks
    • If IsEvaluationSupported returns false, calling this method will result in an exception.
    • This routine generates its own editing transaction and therefore cannot be wrapped inside a separate transaction.
    • When writing an ArcGIS Pro add-in, the extension method CoreDataExtensions.UpdateErrorsInEditOperation should be used instead. This extension method will create an edit operation on the Pro undo/redo stack and redraw any affected layers.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also