Service account does not have bigquery.tables.get permission for table

Highlighted
Five Stars

Service account does not have bigquery.tables.get permission for table

Hi,

I try to create a connection between tBigQueryOutput component and my DataSet in Bigquery,I tested two methods with Talend MDM 7.1

- Authentification mode: OAuth 2.0 ===> it works

- Authentification mode: Service Account ===> it dosen't work.

I create service account with Admin project role and i generated json file

but I'm not able to have successfull connection.

I get thos error:

 

 

Exception in component tBigQueryOutput_1_tBQBE (SUB_ALIM_XXXXXXXXXX)
com.google.cloud.bigquery.BigQueryException: Access Denied: Table PROJECTSmiley Very HappyATASET.MyTable: The user mycompteservice@PROJECT.iam.gserviceaccount.com does not have bigquery.tables.get permission for table PROJECTSmiley Very HappyATASET.MyTable.

at com.google.cloud.bigquery.spi.v2.HttpBigQueryRpc.translate(HttpBigQueryRpc.java:99)
at com.google.cloud.bigquery.spi.v2.HttpBigQueryRpc.getTable(HttpBigQueryRpc.java:232)
at com.google.cloud.bigquery.BigQueryImpl$12.call(BigQueryImpl.java:411)
at com.google.cloud.bigquery.BigQueryImpl$12.call(BigQueryImpl.java:408)
at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:89)
at com.google.cloud.RetryHelper.run(RetryHelper.java:74)
at com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:51)
at com.google.cloud.bigquery.BigQueryImpl.getTable(BigQueryImpl.java:408)
at...
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Access Denied: Table PROJECTSmiley Very HappyATASET.MyTable: The user mycompteservice@PROJECT.iam.gserviceaccount.com does not have bigquery.tables.get permission for table PROJECTSmiley Very HappyATASET.MyTable.",
"reason" : "accessDenied"
} ],

 

Does anyone have experience with this?

 

Best regards

Moderator

Re: Service account does not have bigquery.tables.get permission for table

Hello,

The BigData components tBigQueryOutput and tBigQueryInput components work with Google Service Account in the new release 7.1.1.

Here is the related new feature jira issue:https://jira.talendforge.org/browse/TBD-5960

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch