# S01023 {#s01023}

## Error Code {#error_code .section}

S01023

## Error Message {#error_message .section}

`The chunk <chunkId> is being replicated in the slave cluster for cluster replication. Please stop cluster replication first. RefId:S01023`

## Probable Causes {#probable_causes .section}

After enabling cluster replication for a distributed database, if an attempt is made to write data to the database from the slave cluster through a non-replication method, this error is thrown.

## Solutions {#solutions .section}

-   Avoid writing data to a distributed database with cluster replication enabled from the slave cluster using non-replication methods.
-   Execute `setDatabaseForClusterReplication` to disable cluster replication for the target distributed database before writing data.

**Parent topic:**[Error Code Reference](../../Troubleshooting/ErrorCode.md)

