# S03007 {#s03007}

## Error Code {#error_code .section}

S03007

## Error Message {#error_message .section}

`Cannot subscribe to the table <xxx>. Share this table before subscribing. RefId: S03007`

## Probable Causes {#probable_causes .section}

The subscribed table should be an existing shared stream table. Otherwise, the error occurs when users attempt to use the `subscribeTable` for the subscription.

## Solutions {#solutions .section}

-   If the stream table does not exist, check whether the table name is correct.

-   If the table is not a stream table, set the *table* parameter as a stream table.

-   If the table is not a shared table, use the `share` function or `share` statement to share it across all sessions.


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

