HPE NonStop SQL/MX Error – 20419 Index index-name must be an index on table-name.

In this blog post, let’s learn about the error message “20419 Index index-name must be an index on table-name.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

20419 Index index-name must be an index on table-name.

Reason for the Error

The model index for a MODIFY INDEX … REPARTITION is on a different table than the target index.

Solution

Specify a model index that is on the same table as the target index