In this blog post, let’s learn about the error message “12016 Unique indexes are not allowed on materialized views.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
12016 Unique indexes are not allowed on materialized views.
Reason for the Error
You tried to create a unique index on a materialized view.
Solution
Do not create user indexes (including unique indexes) on the materialized view