All Products
Search
Document Center

Tablestore:What do I do if the "OTSUnsupportOperation" error message is returned when I use Tablestore SDK for Java?

Last Updated:Apr 03, 2025

Problem description

The following error message is returned when I call the syncClient.createTable(request) method to create a data table:

Caused by: [ErrorCode]:OTSUnsupportOperation, [Message]:Unsupported operation: 'CreateTable'.

Possible cause

You use Tablestore SDK for Java V4.0.0 or later to create a data table in an instance of earlier versions.

Solution

Use Tablestore SDK for Java V2.x.x in the Maven project. Add the following content to the dependencies of the pom.xml file:

<dependency>
    <groupId>com.aliyun.openservices</groupId>
    <artifactId>ots-public</artifactId>
    <version>2.2.5</version>
</dependency>