:questiongif: Has there been a change in Dagster’s...
# ask-community
m
questiongif Has there been a change in Dagster’s internals for
AssetMaterialization
Object? Specifically the
metadata_entries
attribute. We are getting this error when trying to trigger an ingestion from Stitch on version
1.3.11
:
Copy code
AttributeError: 'AssetMaterialization' object has no attribute 'metadata_entries'
This use to work on our previous version
1.1.x
The code that triggers this is when we generate assets from a sync with Stitch (code based on an older version of dagster-fivetran):
Copy code
if materialization.asset_key in tracked_asset_keys:
                yield Output(
                    value=None,
                    output_name="_".join(materialization.asset_key.path),
                    metadata={
                        entry.label: entry.entry_data for entry in materialization.metadata_entries  # type: ignore
                    },
                )
            else:
                yield materialization
🤖 1
t
Hi! Yes, the methods were changed in 1.2 in this PR.
❤️ 1
m
Thanks Tim, so I presume we should change it to
metadata=materliazation.metadata
t
I believe so. I'm not too familiar with the retired
metadata_entries
, but the metadata data structure might also be different too once you access it
👍 1
m