You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "atul-astronomer (via GitHub)" <gi...@apache.org> on 2025/02/12 12:04:09 UTC
[I] Not able to import variables via Airflow 3 UI [airflow]
atul-astronomer opened a new issue, #46675:
URL: https://github.com/apache/airflow/issues/46675
### Apache Airflow version
3.0.0a1
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
User is getting error while importing variables using json file via AF3 UI.
Same file is working via AF2 UI
<img width="1498" alt="Image" src="https://github.com/user-attachments/assets/e094d756-2758-4579-897e-4c9606e40676" />
### What you think should happen instead?
User should be able to import variables via AF3 UI.
### How to reproduce
1. Start airflow via breeze and navigate to the AF3 UI variables page.
2. Try to import the json file which has variables.
Variable json file:
[var.json](https://github.com/user-attachments/files/18767497/var.json)
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Not able to import variables via Airflow 3 UI [airflow]
Posted by "atul-astronomer (via GitHub)" <gi...@apache.org>.
atul-astronomer commented on issue #46675:
URL: https://github.com/apache/airflow/issues/46675#issuecomment-2653547604
Yes, thats working in AF2, I have attached that file in the section 'How to reproduce'
{
"a": 20,
"param_variable": 10
}
--
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
Re: [I] Not able to import variables via Airflow 3 UI [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #46675:
URL: https://github.com/apache/airflow/issues/46675#issuecomment-2653524226
Your json is wrongly formatted, something like this is expected:
```json
{
"variable1": "value1",
"variable2": "value2",
"variable3": "value3"
}
```
Even with a properly formatted json, it fails with

--
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
Re: [I] Not able to import variables via Airflow 3 UI [airflow]
Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi closed issue #46675: Not able to import variables via Airflow 3 UI
URL: https://github.com/apache/airflow/issues/46675
--
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
Re: [I] Not able to import variables via Airflow 3 UI [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #46675:
URL: https://github.com/apache/airflow/issues/46675#issuecomment-2653538801
You'r screenshot is taken from a wrong file format.
This
```
{
"variable1": "value1",
"variable2": "value2",
"variable3": "value3"
}
```
Will work in AF2 and not in AF3 because there is a bug. PR is opened.
What is the content of the file that you took the screenshot from ? Is that working in AF2 ?
--
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
Re: [I] Not able to import variables via Airflow 3 UI [airflow]
Posted by "atul-astronomer (via GitHub)" <gi...@apache.org>.
atul-astronomer commented on issue #46675:
URL: https://github.com/apache/airflow/issues/46675#issuecomment-2653532359
Yes, I tried with the above mentioned formatting also and if failed there.
Also about my json file formatting, that is working via AF2 UI and CLI also. It shouldn't work anywhere right if its wrongly formatted.
@pierrejeambrun
--
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