This page shows you how to troubleshoot background metadata refresh and user identity federation for cross-cloud data access with Databricks Unity Catalog. For general cross-cloud data access troubleshooting, such as connectivity and routing over private interconnects, see Troubleshoot cross-cloud data access.
Tables are empty or not discovered during refresh
If the catalog background metadata refresh indicates success (such as
Refresh successfully completed), but tables in the federated catalog do not
appear or listing tables returns 0 items, check the following:
EXTERNAL USE SCHEMAprivilege: Verify that the Databricks Service Principal has been granted theEXTERNAL USE SCHEMAprivilege on the target schemas or catalog in Unity Catalog. Without this privilege, background metadata refresh and credential vending for queries will fail.- External data access setting: Verify that External data access is enabled on the Databricks Unity Catalog metastore.
- External location: Verify that the Databricks Unity Catalog and tables use an external storage location (such as Cloud Storage or Amazon S3) rather than default storage.
Metadata synchronization fails or returns 401 Unauthorized
If the background metadata refresh status reports an error (such as 401 Unauthorized)
or cannot discover schemas, verify the following:
- Service Principal federation policy: In the Databricks Account Console
(Account settings > Security > Identity provider setup > Federation policies),
verify that the Service Principal federation policy is configured as follows:
- Issuer URL:
https://accounts.google.com - Subject: The numeric Unique ID of the catalog's
biglake-service-accountservice account (not its email address). - Audience:
https://accounts.cloud.databricks.com
- Issuer URL:
- Secret Manager permissions: If using secret-based authentication, verify
that the secret exists in the specified regional location and that the
biglake-service-accounthas the Secret Manager Secret Accessor (roles/secretmanager.secretAccessor) role granted. - Service Principal permissions: Ensure that the Databricks Service Principal has read access to the target workspace and catalog.
Interactive query fails with 401 Unauthorized or token validation error
When user identity federation is enabled, interactive queries dynamically mint
an end-user identity token and validate it against an Account-wide federation
policy in Databricks. If queries fail with 401 Unauthorized or token
validation errors while background metadata synchronization is healthy, check
the following:
- Account-wide federation policy configured: Ensure that an Account-wide federation policy (distinct from the Service Principal policy) is created in the Databricks Account Console under Account settings > Security > Identity provider setup > Federation policies.
- Case-sensitive audience matching: Databricks validates the
aud(audience) claim strictly case-sensitively. Verify that the Audiences field in the Databricks Account-wide federation policy matches the exact casing of the metastore-scopedaudienceclaim (databricks-METASTORE_ID) retrieved from your catalog. Any uppercase or lowercase discrepancy (for example, in thedatabricks-prefix or metastore UUID) causes Databricks token validation to reject the query with401 Unauthorized. - Issuer URL: Verify that the Issuer URL matches the exact
issuer-urlclaim from the catalog:https://www.gstatic.com/biglake/federation/organizations/ORGANIZATION_ID. - Metastore audience availability: The metastore-scoped
audienceclaim is populated only after the first background metadata refresh cycle completes (typically within 5 minutes). If you configure the policy with a placeholder value or before the first refresh cycle completes, queries fail. Rungcloud biglake iceberg catalogs describeto verify that theaudienceclaim has been populated before configuring the policy.