Welcome to the Alteryx Knowledge Base
Created/Edited -
When connecting to Google BigQuery from Alteryx Designer using a service account, workflows may succeed for small result sets but fail for larger queries, resulting in errors related to the BigQuery Storage API.
This typically occurs when the Alteryx service account lacks the required IAM permissions to create Storage API read sessions or BigQuery jobs.
The issue is commonly resolved by granting the appropriate BigQuery IAM roles to the service account and confirming the Storage API is enabled.
One or more Input Data tools fail when reading data from Google BigQuery.
Errors appear in the Results window similar to:
-
Error SQLExtendedFetch: [Simba][BigQuery] (131) Unable to authenticate with Google BigQuery Storage API. Check your account permissions.
Additional errors may include:
-
Access Denied: User does not have bigquery.jobs.create permission in project <project-id>. -
Failed to complete write to Google BigQuery: Access token missing.
Observed behaviour:
-
Small result sets run successfully.
-
Large result sets fail.
-
The same query runs successfully in the BigQuery Console using a personal user account.
-
The failure occurs when using a service account via Alteryx DCM.
Downstream tools may also fail with messages such as:
-
The output connection Output6 was not valid.
-
Product: Alteryx Designer
Version: 2024.1.1.93Connector:
-
Google BigQuery via Simba ODBC
Authentication:
-
Service Account JSON key
-
Configured through Data Connection Manager (DCM)
-
-
Access to the following in Google Cloud:
-
GCP Console
-
IAM & Admin
-
BigQuery
-
APIs & Services
Permissions required to:
-
View BigQuery Job History / Audit Logs
-
Modify IAM roles for the service account
-
Generate or rotate service account JSON keys
Access to Alteryx Designer and DCM configuration.
-
This issue is caused by insufficient IAM permissions for the Alteryx service account.
Large result sets are retrieved using the BigQuery Storage API, which requires the role:
-
roles/bigquery.readSessionUser
If this role is missing:
-
Small queries may succeed using the standard BigQuery REST API
-
Large queries fail when the driver switches to Storage API
The error:
-
Unable to authenticate with Google BigQuery Storage API
is therefore commonly triggered by missing Storage API permissions.
Additionally, BigQuery queries run as jobs within a project.
If the service account lacks permission to create jobs, BigQuery returns:
-
Access Denied: User does not have bigquery.jobs.create permission
This permission is included in the role:
-
roles/bigquery.jobUser
The combination of:
-
Small queries succeeding
-
Large queries failing
-
Storage API authentication errors
-
bigquery.jobs.create permission errors
is a strong indicator of missing roles/bigquery.readSessionUser or jobUser permissions.
Follow the steps below to resolve the issue.
1. Confirm the service account and job project
Run the failing workflow once.
In GCP Console → BigQuery → Job History:
Locate the failed job and confirm:
-
Principal → service account email
-
Project ID → job/billing project
Ensure this matches the service account configured in Alteryx DCM.
2. Grant required IAM roles
Ask the GCP administrator to grant the following roles.
At the project level (job/billing project):
-
roles/bigquery.jobUser roles/bigquery.readSessionUser -
These permissions allow the service account to:
-
Create BigQuery jobs
-
Create Storage API read sessions
-
At the dataset level:
For read access:
-
roles/bigquery.dataViewer
For workflows writing to BigQuery:
-
roles/bigquery.dataEditor
3. Confirm BigQuery Storage API is enabled
Navigate to:
GCP Console → APIs & Services → Enabled APIs
Verify both APIs are enabled:
-
BigQuery API
-
BigQuery Storage API
Enable the Storage API if necessary.
4. Verify the service account JSON key in Alteryx
In Alteryx Designer:
Options
→ Advanced Options
→ Manage Connections (DCM)
Confirm:
-
Authentication type = Key File for Google BigQuery
-
The JSON key file corresponds to the active service account key
If needed:
-
Generate a new key in GCP
-
Update the credential in DCM
-
Restart Designer
-
Re-run the workflow
Additional Information
A strong diagnostic indicator for this issue is the pattern:
| Scenario | Behavior |
|---|---|
| Small queries | succeed |
| Large queries | fail |
| BigQuery console query | succeeds |
| Alteryx service account query | fails |
This occurs because:
-
Small result sets use the standard REST API
-
Large result sets automatically use the BigQuery Storage API
If the service account lacks the required Storage API role, the query fails.
Reference documentation:
Google BigQuery access control:
BigQuery Storage API documentation:
Diagnostic Pattern
This issue commonly follows the pattern below:
Root cause identified through pattern analysis:
-
Test Scenario Result Small query (<10k rows) Works Large query (>50k rows) Fails Query in BigQuery console Works Query from Designer using service account Fails
If this pattern is observed together with the errors:
-
Unable to authenticate with Google BigQuery Storage API
-
Access token missing
-
bigquery.jobs.create permission
The root cause is typically a missing Storage API permission for the service account.
This diagnostic pattern is frequently observed when the Simba BigQuery connector switches from REST API to Storage API for large result sets.
Quick Verification Checklist
Before troubleshooting further, confirm the following:
| Check | Expected Result |
|---|---|
| Service account identified in BigQuery Job History | Yes |
| roles/bigquery.jobUser assigned | Yes |
| roles/bigquery.readSessionUser assigned | Yes |
| Dataset access role granted | Yes |
| BigQuery Storage API enabled | Yes |
| The JSON key in Alteryx DCM is current | Yes |
If any of the above checks fail, update IAM permissions or DCM configuration and re-run the workflow.
Keywords:
Alteryx BigQuery Storage API error, Access token missing BigQuery, Simba BigQuery authentication error, bigquery.jobs.create permission error, BigQuery service account permissions, Alteryx BigQuery large query failure.