GitHub user sainikhilsamineni added a comment to the discussion: assets import
@dosu 2025-08-12 06:27:30,467:WARNING:superset.commands.database.utils:Error
processing catalog 'None'
/app/superset/connectors/sqla/models.py:2078: SAWarning: Usage of the 'related
attribute set' operation is not currently supported within the execution stage
of the flush process. Results may not be consistent. Consider using
alternative event listeners or connection-level operations instead.
self.database = session.query(Database).filter_by(id=self.database_id).one()
/app/superset/connectors/sqla/models.py:2078: SAWarning: Usage of the
'collection append' operation is not currently supported within the execution
stage of the flush process. Results may not be consistent. Consider using
alternative event listeners or connection-level operations instead.
self.database = session.query(Database).filter_by(id=self.database_id).one()
/app/superset/models/helpers.py:323: SAWarning: Attribute history events
accumulated on 1 previously clean instances within inner-flush event handlers
have been reset, and will not result in database updates. Consider using
set_committed_value() within inner-flush event handlers to avoid this warning.
obj = obj_query.one_or_none()
2025-08-12 06:27:30,731:WARNING:superset.views.error_handling:CommandException
Traceback (most recent call last):
File "/app/superset/utils/decorators.py", line 259, in wrapped
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/app/superset/commands/importers/v1/assets.py", line 164, in run
self._import(self._configs)
File "/app/superset/commands/importers/v1/assets.py", line 125, in _import
config = update_id_refs(config, chart_ids, dataset_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/superset/commands/dashboard/importers/v1/utils.py", line 69, in
update_id_refs
old_ids = build_uuid_to_id_map(fixed["position"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/superset/commands/dashboard/importers/v1/utils.py", line 49, in
build_uuid_to_id_map
return {
^
File "/app/superset/commands/dashboard/importers/v1/utils.py", line 50, in
<dictcomp>
child["meta"]["uuid"]: child["meta"]["chartId"]
~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'chartId'
GitHub link:
https://github.com/apache/superset/discussions/34573#discussioncomment-14079037
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]