Materialized View backing pipeline retains old Unity Catalog after catalog rename (dev_cat โ dap_catalog_dev) resulting in NO_SUCH_CATALOG_EXCEPTION
This issue blocks the creation and refresh of Materialized Views after a Unity Catalog rename.
Workspace Information
Pipeline Run ID
5337905b-2d28-45f0-8f40-b9279943436a
Cluster used during validation
Problem Summary
We renamed our Unity Catalog from:
to
using the Databricks UI.
Following the rename, existing Materialized Views became invalid.
Even after dropping the Materialized View and recreating it in the renamed catalog, Databricks continues referencing the old catalog (dev_cat) while validating the backing managed pipeline.
As a result, creation/validation of the Materialized View fails.
Error
Encountered an error with Unity Catalog while setting up the pipeline on cluster 0722-134910-ls3f4px7-v2n.
Ensure that your Unity Catalog configuration is correct, and that required resources (e.g., catalog, schema) exist and are accessible.
Also verify that the cluster has appropriate permissions to access Unity Catalog.
Details:
[NO_SUCH_CATALOG_EXCEPTION]
Catalog 'dev_cat' was not found.
SQLSTATE: 42704
Environment
- Unity Catalog enabled workspace
- Materialized Views
- Serverless Pipeline
- Managed Pipeline generated by Materialized View
- Pipeline uses Photon
- User has Workspace Admin privileges
Steps Performed
Step 1
Originally created Materialized View under
Everything functioned correctly.
Step 2
Renamed catalog
to
using the Databricks UI.
Step 3
Dropped the original Materialized View.
The SQL object was successfully removed.
However, the backing managed pipeline still exists.
Step 4
Attempted to recreate the Materialized View under
using
CREATE OR REPLACE MATERIALIZED VIEWdap_catalog_dev.caltrack.vw_item_17_electric_hourly_materializedAS...
Pipeline validation immediately fails.
Investigation Performed
We inspected the generated pipeline YAML.
The managed pipeline still contains references to the old catalog.
Pipeline Name
MV-dev_cat.caltrack.vw_item_17_electric_hourly_materialized
Pipeline configuration contains
Managed SQL definition
CREATE MATERIALIZED VIEWdev_cat.caltrack.vw_item_17_electric_hourly_materialized
However, the source dataset references the renamed catalog
FROMdap_catalog_dev.caltrack.vw_item_17_electric_hourly
Additionally,
dataset_name:
dap_catalog_dev.caltrack.vw_item_17_electric_hourly_materialized
This results in inconsistent metadata.
Summary of pipeline metadata:
Property Value
| Pipeline Name | MV-dev_cat.caltrack.vw_item_17_electric_hourly_materialized |
| catalog | dev_cat |
| CREATE MATERIALIZED VIEW target | dev_cat |
| Source View | dap_catalog_dev |
| dataset_name | dap_catalog_dev |
Additional Observation
Running
DESCRIBE EXTENDED
dap_catalog_dev.caltrack.vw_item_17_electric_yearly_agg_materialized;
returns
TABLE_DOES_NOT_EXIST
Table
dev_cat.caltrack.__materialization_mat_...
does not exist
This indicates the hidden internal materialization table still references the old catalog.
Expected Behaviour
After renaming a Unity Catalog,
or after dropping and recreating the Materialized View,
the managed pipeline should be regenerated with
catalog = dap_catalog_dev
and all internal metadata should reference the renamed catalog.
Actual Behaviour
The managed pipeline continues using
which no longer exists.
Validation therefore fails with
NO_SUCH_CATALOG_EXCEPTION
Troubleshooting Already Performed
- Confirmed catalog rename completed successfully.
- Confirmed new catalog exists.
- Confirmed schemas exist.
- Confirmed user has administrative permissions.
- Dropped the Materialized View.
- Waited for cleanup.
- Recreated the Materialized View.
- Verified pipeline still exists.
- Inspected generated pipeline YAML.
- Verified stale catalog references.
- Verified hidden materialization table still references the old catalog.
Databricks Solution Architect