Request a demo

BigQuery error · Not found and location

Dataset was not found in location

BigQuery looked for the dataset in the project and location the job runs in and didn't find it. Either the name or project is wrong (dataset names are case-sensitive), or the dataset lives in another location than the job, for example EU data queried by a job running in US.

Error reason notFound · HTTP 404 · Checked against the Google Cloud docs in November 2026

The error message

Not found: Dataset <project>:<dataset> was not found in location <location>

Causes

The job runs in a different location than the dataset

Every dataset a query reads or writes must be in the same location as the job. If the job location is set explicitly (the --location flag, the location field of a client library, a scheduled query or a connector setting), BigQuery searches only there. A single region such as europe-west1 doesn't match the EU multi-region, and us-central1 doesn't match US.

The dataset name or project is wrong

Dataset names are case-sensitive, so Analytics and analytics are different datasets. If the reference has no project, BigQuery uses the project that runs the job, which is often not the project that holds the data.

The dataset was deleted or never created in this environment

Datasets created by a pipeline in one environment (dev, staging) are often missing in another, and temporary datasets created by tools may have been cleaned up.

How to fix it

1. Find where the dataset actually is

List the datasets of the project in each location you use. INFORMATION_SCHEMA.SCHEMATA is regional, so query it with the region qualifier of the location you expect.

SELECT schema_name, location, creation_time
FROM `project`.`region-eu`.INFORMATION_SCHEMA.SCHEMATA
ORDER BY schema_name;

2. Run the job in the dataset's location

Set the job location to the dataset's location (bq query --location=EU, the location field in your client library, or the query settings in the console), or leave it unset so BigQuery infers it from the tables the query references.

3. Fully qualify the dataset

Always write project.dataset.table, with backticks when the project ID contains hyphens, so the job's billing project doesn't decide where BigQuery looks.

SELECT order_id, amount
FROM `analytics-prod.sales.orders`
WHERE order_date = '2026-11-22';

4. Copy or replicate the data if you need it in another location

A dataset's location can't be changed. To query it together with data elsewhere, copy it with the BigQuery Data Transfer Service dataset copy, set up cross-region replication, or export it to Cloud Storage and load it into a dataset in the other location.

How to prevent it

  • Pick one location per environment and create every dataset there, including scratch and staging datasets created by tools.
  • Set the location explicitly in orchestrators and client libraries, and keep it in the same config as the project ID.
  • Track notFound failures of scheduled jobs with the failed jobs cost query: each one is a pipeline that didn't refresh its data.

FAQ

Is a query that fails with dataset not found billed?

No. The job fails while resolving names, before reading any data, so no bytes are billed on-demand and no slot time is spent under editions.

Why does the query work in the console but not from my code?

The console infers the location from the tables in the query, while your code may send a fixed location from its config or client setup. Pass the dataset's location or remove the hard-coded one.

Can I join tables from two locations in one query?

Not in a regular query: all datasets must be in the job's location. Copy or replicate one side first. Google also offers global queries (Preview) that read across locations when enabled on both projects.

SQL reference

More not found and location

All BigQuery error messages · What 50M daily events say about BigQuery failures

Stop finding BigQuery failures in Slack threads

Masthead watches every BigQuery job, dbt model, Dataform action and Airflow task from audit logs, groups failures into incidents and shows which tables and dashboards are affected. No access to your data and no added BigQuery cost.