# S03006 {#s03006}

## Error Code {#error_code .section}

S03006

## Error Message {#error_message .section}

`To enable table persistence, specify persistenceDir in server configuration and restart node. RefId: S03006`

## Probable Causes {#probable_causes .section}

This error occurs when users attempt to enable a stream table to be persisted to disk using `enableTablePersistence` or `enableTableShareAndPersistence` but the persistence directory is not specified.

Only when the parameter *persistenceDir* is configured will DolphinDB initialize the module managing stream table persistence and conduct a worker to perform persistence tasks asynchronously.

## Solutions {#solutions .section}

Specify the parameter *persistenceDir* in the configuration file as an existing directory and restart the server.

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

