To ensure transactional integrity, you may require Identity Manager to roll back or abort an event if an external SQL Server update fails. This configuration ensures that Identity Manager actions and SQL database operations are synchronized, preventing partial updates. This is achieved by implementing a dual-policy approach using Policy Express (PX).
Identity Manager 14.x & 15
To ensure that Identity Manager actions fail when a SQL Server update fails, your SQL Stored Procedure must be designed to return a specific error code or exception upon failure. Once the Stored Procedure is configured to return an error status, configure the following two PX policies:
Validation Policy (UI Level):
Event-Based Policy (Execution Level):
Note: Ensure your Stored Procedure includes structured error handling (e.g., TRY...CATCH blocks) and returns a non-zero exit code or explicit error message that the PX policy is configured to identify as a failure.