Databricks Troubleshooting¶
When Test connection or an operation fails on a Databricks datastore, the error message points to one of three layers: the credentials, the Unity Catalog grants, or the compute resource.
Problems every connector shares
A server that cannot be reached, a red status dot, a credential changed at the source, Secrets Management errors, an empty schema list, missing tables, and a blocked deletion are covered on Source Datastore Troubleshooting. This page covers the errors specific to Databricks.
Common Errors¶
| Error | Likely Cause | Fix |
|---|---|---|
INVALID_CREDENTIALS |
The Personal Access Token is invalid, expired, or revoked | Generate a new token from Settings > Developer > Access tokens in Databricks. See Generate a Personal Access Token |
User does not have USAGE permission |
The user lacks USAGE on the catalog or schema |
Run GRANT USAGE ON CATALOG <catalog> TO <user> and GRANT USAGE ON SCHEMA <catalog>.<schema> TO <user> |
User does not have SELECT permission |
The user lacks SELECT on the schema or specific tables |
Run GRANT SELECT ON SCHEMA <catalog>.<schema> TO <user> |
Cluster is not running |
The all-purpose cluster is stopped and AUTO_RESUME is not enabled |
Start the cluster manually or switch to a SQL warehouse with auto-resume |
HTTP Path is invalid |
The Http Path in the connection form does not match the warehouse or cluster | Copy the correct HTTP path again. See Get the Connection Details |
Detailed Notes¶
Authentication errors¶
The error INVALID_CREDENTIALS means the Personal Access Token or the OAuth credentials are invalid.
Common causes:
- Expired token: Personal Access Tokens have an expiration date, and the token may have expired since the connection was created.
- Revoked token: the token was revoked in the Databricks workspace.
- Wrong workspace: the token was generated in a different workspace from the one in Host.
- OAuth secret expired: with OAuth M2M, the service principal's secret has expired.
Note
Databricks tokens are workspace-scoped. A token generated in workspace A cannot connect to workspace B.
Permission errors¶
The errors User does not have USAGE permission and User does not have SELECT permission mean the identity signed in but lacks Unity Catalog grants.
Common causes:
- Missing
USAGEon the catalog: the most common case.USAGEmust be granted on both the catalog and the schema. - Missing
SELECTon the schema: the identity can reach the catalog but cannot read the tables in the schema. - Unity Catalog not enabled: the workspace uses the legacy Hive metastore, where permissions are managed differently.
Compare the grants with Permissions.
Compute errors¶
The errors Cluster is not running and HTTP Path is invalid point to the compute resource, not to data permissions.
Common causes:
- Cluster stopped: all-purpose clusters do not resume on their own by default. Start the cluster, or switch the connection to a SQL warehouse with auto-resume.
- Wrong HTTP path: the path was copied incorrectly, or the warehouse or cluster was recreated with a new path.
- No compute access: the identity lacks
CAN USEon the SQL warehouse or cluster.
See Compute for how SQL warehouses and all-purpose clusters differ.
Tip
Check in this order: first that the credentials are valid (authentication errors), then the Unity Catalog grants (permission errors), and last that the compute resource is available (compute errors).