Gean Faulve
Gean Faulve

Reputation: 101

Weird issue: Bigquery dataset not found

One of our BQ datasets is no longer accessible via BQ Web UI and Cloud Shell.

It shows message "Not found: Dataset project:dataset" immediately upon opening the UI.

We tried a couple of bq shell commands as well:

But we were able to query the views inside and access the contents of the dataset via PowerBI.

IAM Permission: Owner

Anyone encountering similar issue?

Upvotes: 10

Views: 12095

Answers (2)

Gean Faulve
Gean Faulve

Reputation: 101

At that time, there was a caching issue that caused this to happen and was already resolved.

Upvotes: 0

cometfish
cometfish

Reputation: 545

I had a similar issue - the BigQuery client library would list the dataset when I called ListDatasets(), but attempting to call UploadCsv() with the same dataset ID would return 404 Dataset not found.

Turns out it was because I had selected 'asia-northeast1' as the Data Location when creating the dataset - it doesn't tell you when you create the dataset that this region is treated differently, but a line in the BigQuery docs says:

If your data is in a location other than the US or EU multi-regional location, you must specify the location when you perform actions such as loading data, querying data, and exporting data.

Re-creating the dataset in the US region fixed my issue. Or you could use the options in the docs above to specify the 'asia-northeast1' location everytime instead.

Upvotes: 11

Related Questions