BigQuery error · Permissions and access
User does not have permission to query table, or perhaps it does not exist
The job runs, but the identity running it can't read one of the tables or views it references, or the table doesn't exist under that name and location. BigQuery masks which one when you lack metadata access. Check the exact name and region first, then grant BigQuery Data Viewer on the table or dataset.
The error message
Access Denied: Table <project>:<dataset>.<table>: User does not have permission to query table <project>:<dataset>.<table>, or perhaps it does not exist.
Causes
Missing bigquery.tables.getData on the table
Querying needs bigquery.tables.getData on every table and view the query touches, granted on the table, its dataset or the project. BigQuery Data Viewer is the smallest predefined role that includes it.
The table doesn't exist, or is in another location
"Or perhaps it does not exist" is literal: BigQuery hides whether a table exists from principals without metadata permissions. A typo, wrong letter case, a deleted table, or a query running in a different region than the dataset all produce the same message.
A view whose base tables you can't read
Querying a view also needs access to its underlying tables, unless the view is an authorized view (or its dataset an authorized dataset) on the source dataset. Recreating an authorized view under the same name can break the authorization.
A service account or tool using a different identity
Scheduled queries, BI connectors and pipelines run as their own user or service account, which may lack access that you personally have.
How to fix it
1. Grant Data Viewer on the table or dataset
Use SQL DCL if you have permission to change access. Grant on the dataset (ON SCHEMA) when the principal needs all its tables.
GRANT `roles/bigquery.dataViewer`
ON TABLE `acme-analytics.sales.orders`
TO "serviceAccount:looker@acme-analytics.iam.gserviceaccount.com";2. Confirm the table exists where the query runs
List tables in the dataset (requires metadata access) and compare names exactly, including case. Run the query in the dataset's location.
SELECT table_name, table_type, creation_time
FROM `acme-analytics.sales`.INFORMATION_SCHEMA.TABLES
WHERE LOWER(table_name) = 'orders';3. Authorize the view on the source dataset
If users should read a view but not its base tables, add the view (or its dataset) to the source dataset's authorized views or authorized datasets. Remove a stale entry before re-adding a recreated view.
4. Find the exact missing permission
In Logs Explorer, filter BigQuery data access logs for Access Denied and expand protoPayload.authorizationInfo: the entry with granted: false names the permission and resource. Policy Analyzer then shows which roles the principal has.
How to prevent it
- Grant read access to groups at the dataset level, and use authorized views or datasets for curated sharing.
- Give each tool its own service account with explicit dataset grants, so a person leaving doesn't break dashboards.
- After deleting and recreating views, re-check authorized view entries on the source datasets.
FAQ
Does the table really not exist?
Maybe, maybe not. BigQuery deliberately doesn't say when the principal lacks bigquery.tables.get or bigquery.datasets.get. Check with an identity that has metadata access, or verify the name and location.
I'm a project Owner. Why am I denied?
Basic roles map to dataset access, but row-level security, policy tags, deny policies and authorized-view rules can still block reads. The audit log's authorizationInfo shows which check failed.
Is the denied query billed?
No. The query fails during authorization, before reading data, and failed queries aren't billed on-demand.
Related
SQL reference
More permissions and access
All BigQuery error messages · What 50M daily events say about BigQuery failures
