ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / CoreDataExtensions Class / UpdateErrorsInEditOperation Method
The AttributeRuleManager instance to manage attribute rules on behalf of a geodatabase.
A IEnumerable of one or more AttributeRuleError objects.
Version

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

Parameters

attributeRuleManager
The AttributeRuleManager instance to manage attribute rules on behalf of a geodatabase.
validationErrors
A IEnumerable of one or more AttributeRuleError objects.
Exceptions
ExceptionDescription

Cannot find a layer in the active map that connects to the same geodatabase as that of the Attribute Rule Manager.

-or-

This geodatabase does not support attribute rule evaluation.

validationErrors is null or empty.
This method or property must be called within the lambda passed to QueuedTask.Run.
A geodatabase-related exception has occurred.
Remarks
  • This routine creates its own edit operation, and can therefore not be called within an existing transaction.
  • If this operation is successful, it will create an edit operation on the Pro undo/redo stack, invalidate the affected layers and cause the ArcGIS.Desktop.Mapping.MapView to redraw. When writing a CoreHost application, use AttributeRuleManager.UpdateErrors.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also