{
  "id": "rejected-records",
  "title": "Rejected records",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/data-pipelines/rejected-records/",
  "summary": "Learn how RDI stores records that cannot be processed.",
  "tags": [
    "docs",
    "integrate",
    "rs",
    "rdi"
  ],
  "last_updated": "2026-06-24T14:16:43-05:00",
  "page_type": "content",
  "content_hash": "abf77d6a737ffc5ee10972d0da07330460c7135def046170663e8d77d7637451",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Redis Data Integration (RDI) sends records that it cannot process to a dead letter\nqueue (DLQ). In the Redis Cloud UI, these records are called **rejected records**.\n\nRejected records help you understand which source tables are affected and why\nspecific records could not continue through the pipeline. They are intended for\ntroubleshooting and support, not for normal pipeline operation."
    },
    {
      "id": "when-records-are-rejected",
      "title": "When records are rejected",
      "role": "content",
      "text": "RDI can reject a record when it cannot safely transform or write the change event.\nCommon causes include:\n\n- The incoming change event is malformed or missing required metadata.\n- A transformation job fails while processing the record.\n- A target write fails, for example because the target key already has an incompatible data type.\n\nBy default, RDI stores rejected records instead of silently dropping them. You can\nchange this behavior with the `processors.error_handling` setting. See the\n[pipeline configuration file](https://redis.io/docs/latest/integrate/redis-data-integration/data-pipelines/pipeline-config)\nfor more information."
    },
    {
      "id": "how-rdi-stores-rejected-records",
      "title": "How RDI stores rejected records",
      "role": "content",
      "text": "RDI stores rejected records in the RDI database as capped Redis streams. Each DLQ\nstream corresponds to a source table and tracks the records rejected for that\ntable.\n\nThe maximum number of records stored per DLQ stream is controlled by\n`processors.dlq_max_messages`. When the stream reaches the configured limit,\nolder entries are evicted as newer entries are added."
    },
    {
      "id": "what-to-inspect",
      "title": "What to inspect",
      "role": "content",
      "text": "Start with the rejected count for each affected table, then inspect a sample\nrecord from the table with the highest count or the table that matters most to\nyour application.\n\nUseful fields include:\n\n- The affected table.\n- The rejection time.\n- The rejected operation, such as create, update, delete, or snapshot read.\n- The rejection reason.\n- The transformation job or operation, when the failure happened during transformation.\n\n\nRejected records can contain source data when you inspect them directly with CLI\nor API tools. Treat DLQ contents as sensitive customer data. The Redis Cloud UI\nshows a limited set of troubleshooting metadata and does not show the original\nrecord payload."
    },
    {
      "id": "resolve-rejected-records",
      "title": "Resolve rejected records",
      "role": "content",
      "text": "Use the rejection reason to identify the likely fix:\n\n- If a transformation job failed, update the job configuration and deploy the pipeline change.\n- If target writes failed because of incompatible existing keys, update the target data or key mapping.\n- If records are malformed, inspect the source connector and source database change data capture configuration.\n\nRDI does not automatically replay records from the DLQ after you fix the cause.\nIf you need existing source data to be processed again, reset the pipeline after\napplying the fix. See [Reset data pipeline](https://redis.io/docs/latest/operate/rc/rdi/view-edit#reset-data-pipeline)\nfor Redis Cloud, or use the appropriate self-managed RDI reset workflow."
    },
    {
      "id": "cli-and-api-access",
      "title": "CLI and API access",
      "role": "content",
      "text": "For self-managed RDI, use the [`redis-di get-rejected`](https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di-get-rejected)\ncommand to inspect rejected records.\n\nRDI API v2 also includes DLQ inspection endpoints. See the\n[API reference](https://redis.io/docs/latest/integrate/redis-data-integration/reference/api-reference)\nfor endpoint details."
    }
  ],
  "examples": []
}
