BigQuery

BigQuery

NinjaCat supports connecting to Google BigQuery as a custom dataset source. This allows you to query data stored in your BigQuery project and surface it in NinjaCat reports and Data Cloud.

Prerequisites

Before setting up a BigQuery connection, ensure you have:

  • A Google Cloud project with BigQuery enabled
  • A service account with at minimum BigQuery Data Viewer and BigQuery Job User roles
  • The service account's JSON key file
  • The name of the BigQuery dataset and the table or view you want to query

Setting Up a BigQuery Connection

BigQuery connections can be configured in two places:

  1. Classic dataset editor — the traditional connection form
  2. Custom Mapped Dataset wizard — the modern step-by-step setup experience

Both surfaces expose the same connection fields, including the new Dataset Location field described below.

Connection Fields

FieldRequiredDescription
Project IDYesYour Google Cloud project ID
DatasetYesThe BigQuery dataset name
Table / ViewYesThe table or view to query
Service Account JSONYesContents of your service account key file
Dataset LocationNoThe region where your BigQuery dataset resides (e.g., US, EU, us-central1, us-east4). Leave blank to use the default behavior (US multi-region).

Dataset Location Field

What It Does

The Dataset Location field is a free-text input field. Enter the region identifier that matches the location of your BigQuery dataset — for example:

  • US (US multi-region, the default if left blank)
  • EU (Europe multi-region)
  • us-central1
  • us-east4

When to Use It

Set the Dataset Location field if your BigQuery dataset is stored outside the US multi-region (i.e., any region other than US). If you have previously seen errors like:

Not found: Job <project>:<job_id> was not found in location US

this field resolves those errors by telling NinjaCat which region to route queries to.

Existing connections are unaffected when the field is left blank. Leaving it blank preserves the previous default behavior (US multi-region).

How to Find Your Dataset's Location

  1. Open the Google BigQuery console
  2. Expand your project and select the dataset
  3. Click Dataset info — the Data location field shows the region

Enter that value exactly (case-sensitive) in the Dataset Location field in NinjaCat.

On-Screen Connection Errors

Connection and region errors are now surfaced directly on screen as you set up or edit a dataset. If NinjaCat cannot connect to your BigQuery dataset, you will see an error message displayed as a notification.

⚠️

Note on error messages: The error text shown is passed through from Google's API response. Messages may include Google's raw error text, such as:

Not found: Job <project>:<job_id> was not found in location US

If you see a message referencing an unexpected location (e.g., location US when your data is in eu-west1), set the Dataset Location field to match your dataset's actual region in BigQuery.

Troubleshooting

SymptomLikely CauseResolution
Columns fail to load; no error shownRegion mismatchSet the Dataset Location field to match your dataset's region in BigQuery
Error: Not found: Job … was not found in location USDataset is outside US multi-regionSet Dataset Location to the correct region (e.g., EU, us-central1)
Error: Access DeniedService account permissionsEnsure the service account has BigQuery Data Viewer + BigQuery Job User roles
Connection succeeds but data is emptyTable/dataset name mismatchVerify the dataset and table names are correct and accessible to the service account

Related Pages

  • BigQuery Fields — Available dimensions and metrics for BigQuery datasets