dataform icon indicating copy to clipboard operation
dataform copied to clipboard

`dataform run` raises `bigquery error: Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials.`

Open ivan-toriya-precis opened this issue 9 months ago • 6 comments

I have table.sqlx

select *
from `project.dataset.external_gsheet_table`

When I run dataform run I get

bigquery error: Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials.

When I execute from the UI, everything works as expected.

Notes:

  • Dataform SA has Editor access to the Google Sheet
  • My gcloud authenticated account has access to the Google Sheet
  • Could be related to #1869

ivan-toriya-precis avatar Apr 07 '25 08:04 ivan-toriya-precis

Hi, thank you for reporting the issue. Does it work before for you in any of the previous Dataform Core versions, or is it a completely new action?

Ceridan avatar Apr 26 '25 13:04 Ceridan

I haven't tried it on a different version. I'm using 3.0.19

ivan-toriya-precis avatar Apr 28 '25 17:04 ivan-toriya-precis

@Ceridan - is there any additional information about this issue somewhere? I'm battling the same exact issue, and have tried both 3.0.19 and 3.0.22.

bln4t0r avatar Jun 04 '25 19:06 bln4t0r

I'm running into the same issues with dataform - never used to run into this

shaunmb98 avatar Jun 19 '25 22:06 shaunmb98

I have a similar issue with my personal account on Google Cloud. When using the ▶️Run button in the UI, it works. But when going to Start Execution > Actions, it doesn't (only with a service account). I have owner role in Google Cloud, Editor access in the Google Sheet and Sheet/Drive APIs are enabled on the project.

rkgomezisa avatar Jul 28 '25 15:07 rkgomezisa

UPDATE:

I tried running gcloud auth login --enable-gdrive-access --update-adc and it worked. I got this suggestion from this dbt FAQ.

ashish10alex avatar Aug 15 '25 08:08 ashish10alex