Errors

DSAR-BE-1413: PERSISTENCE_INVALID_RECORD

Meaning

A record retrieved from the database violates the expected domain contract (e.g. an enum field contains an unrecognised value).

Probable Causes

  • Database was modified directly, bypassing application-level validation.
  • A migration introduced or removed valid enum values without updating all records.
  • Data corruption or encoding issue in the storage layer.

How to Fix

  1. Inspect error.trace.entity and error.trace.field for the offending record.
  2. Verify the stored value against the current domain schema.
  3. Run a data migration to correct invalid records.

Retryable

No. The underlying data must be corrected first.

Response Shape

Minimal Trigger Example