You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/25 10:21:46 UTC
[GitHub] [airflow] potiuk commented on issue #17203: KeyError: 'Variable var3 does not exist' despite of existing
potiuk commented on issue #17203:
URL: https://github.com/apache/airflow/issues/17203#issuecomment-886179219
Fist of all - This does not look like an issue. You should rather use "GitHub Discussions" for similar questions. It's neither a bug nor feature.
Secondly - do not use variables at top-level of your dags. The reasons are explained here: https://airflow.apache.org/docs/apache-airflow/stable/best-practices.html#variables
Thirdly - you have clear error - the problem you get is you try to run `var.value.var3` - but you do not have variable var3 defined. You have "example_variables_config" variable which is a dictionary. You would have to have a `var3` variable defined (similarly as "example_variables_config" if you want to access it this way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org