---
title: COMMAND_NOT_APPLICABLE_TO_TABLE error condition
description: Documentation for the COMMAND\_NOT\_APPLICABLE\_TO\_TABLE error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/command-not-applicable-to-table-error-class
---

# COMMAND\_NOT\_APPLICABLE\_TO\_TABLE error condition

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

`<command>` does not apply to table `<tableName>`.

## FOREIGN\_NON\_INTERNAL\_HMS\_ONLY

The table must be a foreign table that is not backed by an internal Hive Metastore.
