If the "Validate PK size fail" error message is returned when you use Tablestore SDKs, make sure that the number of primary key columns that you specify is the same as the number of primary key columns in the data table.
Problem description
The following error message is returned when I use a Tablestore SDK to update data in a data table:
Caused by: [ErrorCode]:OTSInvalidPK, [Message]:Validate PK size failPossible cause
The number of primary key columns that you specify is different from the number of primary key columns in the data table.
Solution
Make sure that the number of primary key columns that you specify is the same as the number of primary key columns in the data table.