Hi guys, First of all thanks in advance for any s...
# support
m
Hi guys, First of all thanks in advance for any support you can provide. Here is the topic. After having already successfully created BigQuery as a destination, we just tried to set up BigQuery as a Reverse ETL pipeline. The all setup process seemed okay, however when we start any sync toward any Destination (we tried GSheets and ActiveCampaign) the sync fails with this error: Error while executing state: end, error: error while executing snapshot task: rudderstack schema does not exist or not authorized. Please follow the steps to create and grant permissions on rudderstack_ schema: https://www.rudderstack.com/docs/sources/reverse-etl/google-bigquery/#step-4-creating-the-rudderstack-schema-and-granting-permissions_ However we repeated the setup process multiple times from scratch to be sure that everything was okay. Here all the steps accomplished and in attachments all the screenshots: • In Google Cloud we have created “RUDDER_ROLE” role with the 9 permissions (bigquery.datasets.get, bigquery.jobs.create, etc...) • In Google Cloud we create the service account using created custom role • We generated the JSON key of this created service account • In BigQuery We run SQL command
"create schema rudderstack_;"
to create dedicated schema “rudderstack_” • Still in BQ we granted full access to rudderstack_ schema by running the SQL code `GRANT
roles/bigquery.dataOwner
ON SCHEMA rudderstack_ TO "serviceAccount:<SERVICE_ACCOUNT_ID>";` • In Rudderstack we activated new Reverse ETL source selecting BigQuery and applying credentials of the JSON generated key • Finally the Verifying Credentials process using the above mentioned credentials returns 3 green lights: Verifying Connection ✅, Able to List Schema ✅, Able to Access RudderStack Schema ✅ Since all the setup steps above seem performed correctly, we don’t understand why the problem seems still related to the permissions of the SCHEMA rudderstack_. Any ideas? Can you have a look at the logs to confirm that the problem is related to the access of the rudderstack_ SCHEMA? In case our Workspace Id
"2PgzjIUnieGnwCpEeBVTZmRrkYz"
Thanks in advance for any suggestions Raffaele
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Raffaele let me check on this and get back to you on Monday
Hi Raffaele, you added one of your images to a thread by another user. Can you add it to the correct thread?
m
Thanks for your kind feedback and for looking into this @shy-kite-21035 I fixed the image and attached here to the correct thread
p
@miniature-caravan-32349The last step you are seeing actually verifies whether user able to create, read and drop tables within
rudderstack_
schema. Let me check this and get back to you
m
Thank you for looking into this @proud-book-26310 Looking forward to your feedback
p
@miniature-caravan-32349 we can try running validation steps again. Follow these steps to re-run validations. 1. Go to Settings (Just beside the syncs tab) 2. Edit Credentials 3. Select Same Account 4. Click Save You should see validation steps running again. Let's see if there is some issue with the 3rd step. Just want to make sure nothing changed on Bigquery after source is created
m
Ok @proud-book-26310 I followed your instructions and I’ve got this error I’ll check with my devops colleagues our billing settings, at least it is a different error. I’ll try to fix and retry. Then I’ll revert
Hello again @proud-book-26310 We fixed the billing account association in Google Cloud for BigQuery but still getting the same error related to the access to the
rudderstack_
schema. See the short video in attachment. Any ideas? Thank you!
p
@miniature-caravan-32349 Ok, got it. Even after fixing the billing issue, sync still fails. I will try to check why this is happening
m
Excellent thanks @proud-book-26310. As I posted above 👆in case you can have a look at the logs our Workspace Id is
"2PgzjIUnieGnwCpEeBVTZmRrkYz"
p
@miniature-caravan-32349 I am seeing this error in logs. Looks like selected table for sync is in EU location.
Copy code
googleapi: Error 404: Not found: Dataset elk-analytics-398810:rudderstack_ was not found in location EU, notFound
Please make sure both the datasets
rudderstack_
and dataset selected for sync are in the same region. while creating
rudderstack_
, use
location
option to create in specific location if needed doc: https://cloud.google.com/bigquery/docs/datasets#sql
why validation checks passed? In validation we only check for existence of
rudderstack_
dataset and a try to create and drop table. But while a sync is running, we refer to the actual table to be loaded and that requires both
rudderstack_
and the selected table to be in same location. we can't refer to datasets in different locations in one query https://cloud.google.com/bigquery/docs/datasets-intro#dataset_limitations
m
Ok @proud-book-26310 so if I correctly understand the problem is that all our datasets are in the EU region, so when I run the sql code
create schema rudderstack_;
without the
location
option then the schema is
rudderstack_
is not generated in the EU region and this is source of the issue, right? If this is the case we will try to force using
location
option to have everything in the same region and revert to tell if this fixed. Thank you in the meantime!
image.png
✅ 1
p
That's the issue.
m
Thank you @proud-book-26310 Your suggestion fixed the sync issue on BigQuery. Now I have a failure on the destination but I need to debug it first. Should I have additional doubts I will let you know. In the meantime, thanks again for the help 🙏