---
title: NO_SUCH_METASTORE_EXCEPTION error condition
description: Documentation for the NO\_SUCH\_METASTORE\_EXCEPTION error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/no-such-metastore-exception-error-class
---

# NO\_SUCH\_METASTORE\_EXCEPTION error condition

[SQLSTATE: 42704](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-42-syntax-error-or-access-rule-violation)

The metastore was not found.

## NOT\_ASSIGNED

Please ask your account administrator to assign a metastore to the current workspace and then retry the query or command again.

## WITH\_NAME

Metastore '`<metastore>`' was not found. Please verify the metastore name and then retry the query or command again.
