Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: dbt_artifacts.upload_results on on-run-end causing dbt docs generate step error: 'MacroGenerator' object is not iterable #452

Open
wusanny opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wusanny
Copy link

wusanny commented Oct 16, 2024

Overview

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

error on runs

Environment

Results of running dbt --version:

1.7.18

Please paste the contents of your packages.yml file here:

packages:
  - package: dbt-labs/dbt_external_tables
    version: 0.8.1
  - package: dbt-labs/dbt_utils
    version: 1.0.0
  - package: Montreal-Analytics/snowflake_utils
    version: 0.5.0
  - package: fivetran/fivetran_log
    version: [">=1.0.0", "<1.1.0"]
  - package: brooklyn-data/dbt_artifacts
    version: 2.6.3
@wusanny wusanny added the bug Something isn't working label Oct 16, 2024
@wusanny 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant