If the "Validate PK type fail" error message is returned when you use Tablestore SDKs, make sure the data types of primary key columns that you specify are the same as the data types of primary key columns in the data table.
Problem description
The following error message is returned when I use a Tablestore SDK to write data to a data table:
Caused by: [ErrorCode]:OTSInvalidPK, [Message]:Validate PK type fail. Input: VT_STRING, Meta: VT_BLOB. [RequestId]:00055f43-3d31-012b-62c3-980a3eefe39e, [TraceId]:02822839-3b5b-af35-409a-cf68841239fa, [HttpStatus:]400
Possible cause
The data types of primary key columns that you specify are different from the data types of primary key columns in the data table.
Solution
Make sure the data types of primary key columns that you specify are the same as the data types of primary key columns in the data table.