## TL;DR

Symptom: Not found: Dataset [PROJECT]:[DATASET] and you can SEE the dataset in the console. The dataset lives in EU (or a region), your query job defaulted to US (or vice versa).

```text
Not found: Dataset [PROJECT]:[DATASET]
```

## Steps

1. Cause: location mismatch. The dataset lives in EU (or a region), your query job defaulted to US (or vice versa). BigQuery returns notFound instead of a location error, which sends agents down the wrong path.

2. Confirm:
1. `bq show --project_id [P] [DATASET]` - read the location field. Or check the dataset details in the console.
2. Check where your job ran: the client default location. If you constructed bigquery.Client without location, it defaults and probably mismatches.
3. Rule out IAM only after location: if location matches and it still 404s, then check dataViewer.

3. Fix: set the location on the client to the dataset's location:

```python
client = bigquery.Client(project="[P]", location="[DATASET-LOCATION]")
```

4. Or pass location per query call in client versions that support it.

5. Do not "fix" by recreating the dataset in the job's default location. You would duplicate data and billing. Match the job to the data, not the reverse.

6. Prevention: in multi-region setups, make location a required config value in every script and job spec, never a default anyone has to remember.

7. Verify: rerun the query; the dataset resolves immediately. Then add an assertion or config check so the next script fails fast with "location not set" instead of a confusing 404.

## When to use

You are seeing this: Confirm: 1. bq show --project\_id [P] [DATASET] - read the location field. Use this skill when you run into "Diagnose: Not found Dataset when the dataset obviously exists".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
