HPE NonStop SQL/MX Error – 20412 The LIKE clause must specify object-type in the same catalog and schema as target-object-name.object-typeis the type of the affected SQL/MX table or index.target-object-nameis the fully qualified ANSI name of the target object.

In this blog post, let’s learn about the error message “20412 The LIKE clause must specify object-type in the same catalog and schema as target-object-name.object-typeis the type of the affected SQL/MX table or index.target-object-nameis the fully qualified ANSI name of the target object.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

20412 The LIKE clause must specify object-type in the same catalog and schema as target-object-name.object-typeis the type of the affected SQL/MX table or index.target-object-nameis the fully qualified ANSI name of the target object.

Reason for the Error

The model object for MODIFY REPARTITION is in a different schema than the target object.

Solution

Specify a model object in the same catalog and schema as the target object