Hi, does anyone get this exception before? would l...
# ask-community
Hi, does anyone get this exception before? would like to know how to fix it🙏
Copy code
File "/opt/conda/lib/python3.10/site-packages/dagster/_core/definitions/repository_definition/repository_data.py", line 346, in from_list
    return build_caching_repository_data_from_list(
  File "/opt/conda/lib/python3.10/site-packages/dagster/_core/definitions/repository_definition/repository_data_builder.py", line 181, in build_caching_repository_data_from_list
    raise DagsterInvalidDefinitionError(f"Duplicate asset key: {key}")
dagster._core.errors.DagsterInvalidDefinitionError: Duplicate asset key: AssetKey(['airbyte_asset', 'products'])
2023-08-25 04:32:41 +0000 - dagster.code_server - INFO - Started Dagster code server for file ingest.py in process 175
/opt/conda/lib/python3.10/site-packages/dagster/_core/workspace/context.py:610: UserWarning: Error loading repository location ingest.py:dagster._core.errors.DagsterInvalidDefinitionError: Duplicate asset key: AssetKey(['airbyte_asset', 'products'])
hey @adayung this means that you have two assets defined that have the same name/key. In this case the key is
- you should check your code to see if you are creating assets with that key in multiple places
❤️ 1