In this blog post, let’s learn about the error message “21052 Tables source-table and target-table have incompatible clustering key specifications.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
21052 Tables source-table and target-table have incompatible clustering key specifications.
Reason for the Error
The FASTCOPY TABLE or FASTCOPY INDEX command is executed. The clustering keys for the source and target tables do not satisfy all the following conditions:
either both tables have a SYSKEY column or both tables must not have a SYSKEY column
SYSKEY column, if any, have the same column number in the tables
clustering keys have the same number of columns
each source-target pair of clustering key columns, in key sequence order, have the same column number in the tables
Solution
None