atul-astronomer opened a new issue, #46835:
URL: https://github.com/apache/airflow/issues/46835

   ### Apache Airflow version
   
   3.0.0a1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Asset activation error is raised when 2 assets are defined using same name, 
this error is displayed on AF2 UI but not on AF3 UI.
   
   AF2:
   
   <img width="1203" alt="Image" 
src="https://github.com/user-attachments/assets/46c6ef38-ba8c-4139-ad2a-2ddc1c698497";
 />
   
   AF3:
   
   <img width="1389" alt="Image" 
src="https://github.com/user-attachments/assets/d8cb7dd7-9b4b-4d3f-83eb-ffe7405d7d07";
 />
   
   ### What you think should happen instead?
   
   The error should be displayed on AF3 UI also
   
   ### How to reproduce
   
   Have a Dag where 2 assets are defined using same name and notice the error 
on Dag page.
   
   ```python
   from datetime import datetime
   
   from airflow.providers.standard.operators.empty import EmptyOperator
   from airflow.providers.standard.operators.python import BranchPythonOperator
   from airflow.sdk.definitions.asset import Asset
   
   from airflow.decorators import dag
   from airflow.sdk.definitions.asset import Model
   
   from airflow.sdk.definitions.asset import Dataset
   
   # these two will have downstream dags
   left = Asset(name='asset_name', uri='asset_uri')
   right = Asset(name="asset_name")
   
   
   @dag(start_date=datetime(1970, 1, 1), schedule=None)
   def asset_name_uri():
       l = EmptyOperator(task_id="left", outlets=[left])
       c = EmptyOperator(task_id="center", outlets=[])
       r = EmptyOperator(task_id="right", outlets=[right])
       BranchPythonOperator(
           task_id="decide", python_callable=lambda: ["left", "right", "center"]
       ) >> [l, r, c]
   
   
   asset_name_uri()
   
   ``` 
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to