---
title: INVALID_SECRET_LOOKUP error condition
description: Documentation for the INVALID\_SECRET\_LOOKUP error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/invalid-secret-lookup-error-class
---

# INVALID\_SECRET\_LOOKUP error condition

[SQLSTATE: 22531](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-22-data-exception)

Invalid secret lookup:

## LIST\_SECRETS\_FAILED

The `LIST_SECRETS` table function failed to return the list of available secrets `<cause>`

## SECRET\_FUNCTION\_KEY\_NOT\_CONSTANT

The `SECRET` function requires the secret key as a constant string expression passed in the second argument

## SECRET\_FUNCTION\_LOOKUP\_FAILED

The `SECRET` function failed to find a secret with scope `<scope>` and key `<key> <cause>`

## SECRET\_FUNCTION\_NOT\_SUPPORTED

The `SECRET` and `LIST_SECRETS` functions are not supported.

## SECRET\_FUNCTION\_SCOPE\_NOT\_CONSTANT

The `SECRET` function requires the secret scope as a constant string expression passed in the first argument.
