GitHub user dosubot[bot] added a comment to the discussion: assets import
<!-- Answer --> The KeyError: 'chartId' happens because your dashboard YAML's position field is missing the chartId key in the meta section for one or more chart nodes. Superset's import logic expects every chart node in the position layout to have both uuid (the chart's UUID) and chartId (an integer, can be a placeholder like 0 or null) in meta. For example: ```yaml position: CHART-1: meta: chartId: 0 uuid: 33333333-3333-3333-3333-333333333333 type: CHART DASHBOARD_VERSION_KEY: v2 ``` The importer will update chartId to the correct value during import. If chartId is missing, you'll get the KeyError you saw. Just make sure every chart node under position/.../meta/ has both uuid and chartId fields to avoid this error [reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/dashboard/importers/v1/utils.py). The SQLAlchemy warnings in your logs are not related to this import failure and can be ignored for now. If you want, you can share a snippet of your dashboard YAML and I can review it for you. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/6ac89c19-9b3f-494a-bc8c-30f2b216148c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/6ac89c19-9b3f-494a-bc8c-30f2b216148c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/6ac89c19-9b3f-494a-bc8c-30f2b216148c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/6ac89c19-9b3f-494a-bc8c-30f2b216148c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/6ac89c19-9b3f-494a-bc8c-30f2b216148c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/6ac89c19-9b3f-494a-bc8c-30f2b216148c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/6ac89c19-9b3f-494a-bc8c-30f2b216148c?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34573) GitHub link: https://github.com/apache/superset/discussions/34573#discussioncomment-14079062 ---- This is an automatically sent email for notifications@superset.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org