> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/error-codes/mariadb-error-codes-6000-to-6099/e6001.md).

# Error 6001: Before image of replicated record does not match the slave local record

MariaDB Enterprise Server error 6001 (ER\_INCONSISTENT\_SLAVE\_TABLE): Before image of replicated record does not match the slave local record

| Error Code | SQLSTATE | Error                          | Description                                                             |
| ---------- | -------- | ------------------------------ | ----------------------------------------------------------------------- |
| 6001       |          | ER\_INCONSISTENT\_SLAVE\_TABLE | Before image of replicated record does not match the slave local record |

This error code is specific to MariaDB Enterprise Server, beginning with MariaDB Enterprise Server 12.3.

## Possible Causes and Solutions

A replica raises this error when it applies a row-based `UPDATE` or `DELETE` event to a table that has [Conflict Detection and Resolution (CDR) triggers](/docs/server/ha-and-performance/standard-replication/conflict-detection-and-resolution-triggers.md), and the row it finds does not match the before-image recorded on the primary — but the conflict is not eligible to be routed to a CDR trigger. The SQL thread stops so an operator can reconcile the diverged data; the error appears in the `Last_SQL_Errno` and `Last_SQL_Error` columns of [SHOW REPLICA STATUS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-replica-status.md).

A conflict is not eligible for trigger routing when the table lacks a primary key, or when the replica's [slave\_parallel\_mode](/docs/server/ha-and-performance/standard-replication/replication-and-binary-log-system-variables.md#slave_parallel_mode) is a setting more aggressive than `optimistic`. See [The Before-Image Consistency Check](/docs/server/ha-and-performance/standard-replication/conflict-detection-and-resolution-triggers.md#the-before-image-consistency-check) for the full eligibility rules and the recommended configuration.

<sub>*This page is: Copyright © 2026 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}
