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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

relation_name is empty and stops Github Actions #16

Closed
hugohahn009 opened this issue Aug 4, 2023 · 1 comment
Closed

relation_name is empty and stops Github Actions #16

hugohahn009 opened this issue Aug 4, 2023 · 1 comment

Comments

@hugohahn009
Copy link

Hello @rfdearborn,

first of all, thank you for building this tool, it's really great. I am trying to implement it in my company to promote self service w/ dbt 馃尀

I went through the whole setup and successfully imported the first documented models in a Notion DB.
However, at some points, Github Actions fails because of a specific model documentation (and I do not know which).

Here is the error:

Traceback (most recent call last): File "/home/runner/work/_actions/rfdearborn/dbt-docs-to-notion/v1.0.9/dbt_docs_to_notion.py", line 513, in <module> main() File "/home/runner/work/_actions/rfdearborn/dbt-docs-to-notion/v1.0.9/dbt_docs_to_notion.py", line 413, in main "content": data['relation_name'][:2000] TypeError: 'NoneType' object is not subscriptable Error: Process completed with exit code 1.

My guess is that some model does not have a 'relation_name'. Could you help me on this topic ? Thank you !

@hugohahn009
Copy link
Author

I was able to find the culprit. One of our data models was materialised as "ephemeral" and had not relation_name. It was causing the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant