BigQuery error · Not found and location
Table was not found in location
The table in the query doesn't exist under that exact project, dataset and name in the job's location. Check the spelling and case, the project the reference resolves to, and whether the table expired or was deleted; a deleted table can be restored within the time travel window.
The error message
Not found: Table <project>:<dataset>.<table> was not found in location <location>
Causes
Wrong name, case or project
Table names are case-sensitive. A reference without a project resolves to the project that runs the job, so the same SQL finds the table in one project and fails in another.
The table expired or was deleted
Tables with an expiration time, or in a dataset with a default table expiration, disappear on schedule. A pipeline that drops and recreates a table can also make concurrent queries fail while the table is missing.
The job runs in another location
If the job location is set to a location other than the dataset's, the table can't be found even though the name is right.
A shard or cached result is gone
Date-sharded tables such as events_20261122 only exist once the day is loaded. Anonymous result tables of cached queries (datasets starting with _) expire after about 24 hours. External tables return variants such as Not found: URI or Not found: Files when the files behind them are gone.
How to fix it
1. List the tables that do exist
Look up the name in the dataset's INFORMATION_SCHEMA.TABLES to catch typos, case differences and missing shards.
SELECT table_name, table_type, creation_time
FROM `project.dataset`.INFORMATION_SCHEMA.TABLES
WHERE LOWER(table_name) LIKE 'orders%'
ORDER BY table_name;2. Fully qualify the table
Write project.dataset.table in backticks so the result doesn't depend on which project runs the job.
SELECT order_id, status
FROM `analytics-prod.sales.orders`
WHERE order_date = '2026-11-22';3. Restore a deleted table with time travel
Within the dataset's time travel window (up to 7 days), copy the table from a point in time before the deletion, for example bq cp sales.orders@<milliseconds_since_epoch> sales.orders_restored. If the dataset was deleted too, recreate it with the same name and location first.
4. Guard queries over optional shards
Read sharded tables through a wildcard with a _TABLE_SUFFIX filter: a missing day returns no rows instead of failing the query.
SELECT COUNT(*) AS events
FROM `project.dataset.events_*`
WHERE _TABLE_SUFFIX = FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY));How to prevent it
- Replace drop-and-recreate steps with
CREATE OR REPLACE TABLEor a write withWRITE_TRUNCATE, so readers never see the table missing. - Review table and dataset expiration settings on anything a scheduled query reads.
- Find tables that nobody reads before deleting them, with the cost by table query, instead of learning about a dependency from this error.
FAQ
Is a query that fails with table not found billed?
No. Name resolution fails before any data is read, so nothing is billed on-demand and no slots run under editions.
Why does BigQuery say the table isn't found when I can see it in the console?
Usually the job runs in a different project or location than the one you're looking at, or the name differs in case. Copy the full ID from the table's Details tab and query it with backticks.
How long can I restore a deleted BigQuery table?
Within the dataset's time travel window, which is up to 7 days (configurable down to 2 days). After that, the table can only be recovered from your own backups or snapshots.
Related
SQL reference
More not found and location
All BigQuery error messages · What 50M daily events say about BigQuery failures
