You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our customer has an on-run-end in their dbt_project.yml as follows:
on-run-end:
- "{% if target.name == 'prod' or target.name == 'test' %}{{ dbt_artifacts.upload_results(results) }}{% endif %}"
In their dbt runs, they are getting the following error:
Compilation Error in operation snowflake_edw-on-run-end-0 (./dbt_project.yml)
'MacroGenerator' object is not iterable
> in macro upload_results (macros/upload_results/upload_results.sql)
> called by operation snowflake_edw-on-run-end-0 (./dbt_project.yml)
The issue only started since 16 Sep onwards, prior to this date - the same setup worked as per normal.
How to reproduce
Unfortunately, we have not been able to reproduce this outside of the customer's account/environment.
Expected behaviour
There should not have been any error raised.
Screenshots
Environment
Results of running dbt --version:
1.7.18
Please paste the contents of your packages.yml file here:
wusanny
changed the title
[Bug]:
[Bug]: dbt_artifacts.upload_results on on-run-end causing dbt docs generate step error: 'MacroGenerator' object is not iterable
Oct 16, 2024
Overview
Our customer has an on-run-end in their dbt_project.yml as follows:
In their dbt runs, they are getting the following error:
The issue only started since 16 Sep onwards, prior to this date - the same setup worked as per normal.
How to reproduce
Unfortunately, we have not been able to reproduce this outside of the customer's account/environment.
Expected behaviour
There should not have been any error raised.
Screenshots
Environment
Results of running
dbt --version
:Please paste the contents of your
packages.yml
file here:The text was updated successfully, but these errors were encountered: