Open adaskaval opened 3 months ago
I don't recognize that as a package error.
What version of the dbt BigQuery adapter are you using?
Is this a new project? Or are you upgrading to the latest version of dbt-GA4?
Hello @dgitis,
This is not a new dbt project, we've been using this package for a while, but only with 1 google analytics property. We made updates by adding 2 new properties and set "combined_dataset" parameter.
We are using 1.7.0 dbt adapter version:
(.venv) adask@Adass-MBP models % dbt run --models tag:ga4,tag:staging --target prod
08:38:41 Running with dbt=1.7.0
08:38:42 Registered adapter: bigquery=1.7.0
Once we add "combined_dataset", this error appears. As per my understanding this parameter enables macro, which combines all properties into one before executing models, but it fails.
Thank you for your insights.
@adaskaval yes, when combining properties, this macro is run: https://github.com/Velir/dbt-ga4/blob/main/macros/combine_property_data.sql
Can you try to manually execute some of the commands in that macro? I have a feeling this is either related to your dbt execution environment or GCP settings. I've never seen that error.
For example, can you try to run a command like this (filling in your own sample source/target table):
CREATE OR REPLACE TABLE `{{target.project}}.{{var('combined_dataset')}}.events_{{relation_suffix}}{{property_id}}` CLONE `{{var('source_project')}}.analytics_{{property_id}}.events_{{relation_suffix}}`;
Package version:
My setup:
Error: