---
title: MATERIALIZED_VIEW_OPERATION_NOT_ALLOWED error condition
description: Documentation for the MATERIALIZED\_VIEW\_OPERATION\_NOT\_ALLOWED error condition on Databricks
canonical_url: https://docs.databricks.com/aws/en/error-messages/materialized-view-operation-not-allowed-error-class
---

# MATERIALIZED\_VIEW\_OPERATION\_NOT\_ALLOWED error condition

[SQLSTATE: 56038](https://docs.databricks.com/aws/en/error-messages/sqlstates.md#class-56-miscellaneous-sql-or-product-error)

The materialized view operation `<operation>` is not allowed:

## CHANGE\_OWNER

Changing the owner of materialized view `<tableName>` is not allowed.

## DEEP\_CLONE

Deep clone on materialized views is currently disabled. Contact Databricks support.

## DROP\_DELTA\_LIVE\_TABLE

Cannot `DROP` a materialized view created from Spark Declarative Pipelines on Lakeflow, instead remove the materialized view from the pipeline definition in Spark Declarative Pipelines on Lakeflow and retry the pipeline again.

## INVALID\_ALTER

To alter the schema or properties of materialized views, please use the `CREATE` OR `REFRESH MATERIALIZED VIEW` command.

## MV\_NOT\_ENABLED

materialized view features are not enabled for your workspace. Please reach out to Databricks to enable materialized views for your workspace.

## MV\_NOT\_ENABLED\_ON\_SERVERLESS\_GENERIC\_COMPUTE

Cannot `<operation>` the materialized view `<tableName>` in Serverless Generic Compute for your workspace. Enable it by enrolling in the Serverless Generic Compute materialized view/streaming table workspace feature preview. If you do not see the beta feature preview available in workspace, please contact your Databricks representative.

## NON\_MATERIALIZED\_VIEW

`<viewName>` is not a materialized view. Please run `<operation>` again with a materialized view.

## NOT\_ATTACHED\_TO\_ACTIVE\_PIPELINE

The materialized view `<tableName>` is currently not attached to an active pipeline. To enable refresh support, move the materialized view into a new or existing pipeline before running `<operation>` again. See `<docLink>`.

## OPERATE\_ON\_STAGING\_TABLE

Cannot perform operation: `<operation>` on the Staging Table `<tableName>`.

## REPLACE\_DELTA\_LIVE\_TABLE

Cannot `REPLACE` a materialized view created from Spark Declarative Pipelines on Lakeflow, instead update the materialized view from the pipeline definition in Spark Declarative Pipelines on Lakeflow and retry the pipeline again.

## REQUIRES\_DBSQL\_PRO\_PLUS

Cannot `<operation>` the materialized view `<tableName>` from `<environment>`, please use `DBSQL` Serverless (recommended) or Pro warehouse.

## REQUIRES\_SHARED\_COMPUTE

Cannot `<operation>` the materialized view `<tableName>` from an Assigned or No Isolation Shared cluster, please use a Shared cluster or a Databricks SQL warehouse instead.

## SHALLOW\_CLONE

To create an independent copy of a materialized view, use DEEP `CLONE` instead.
