GitHub user dosubot[bot] added a comment to the discussion: assets import
<!-- Answer --> For asset import, you should omit fields like `datasource: 1__table`, `slice_id`, `id` (in metrics), `dashboards`, and `optionName` from your chart YAML. These are internal or frontend-only fieldsāSuperset ignores or overwrites them during import. The import process uses only UUIDs (like `uuid` and `dataset_uuid`) to link assets. Any references to datasources, charts, or dashboards by numeric ID in `params`, `form_data`, or `query_context` are automatically updated to match the new IDs assigned during import, so you don't need to set or maintain them yourself. Just ensure all UUIDs are unique and correctly referenced across your bundle. This approach is robust and safe for multi-tenant onboarding, and avoids import errors or accidental overwrites. Fields like `optionName` in metrics are UI-only and have no effect on backend linking or import logic. [Reference: chart import logic](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/chart/importers/v1/__init__.py) | [Chart schema](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/charts/schemas.py) | [Asset import command](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/importers/v1/assets.py) <!-- 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/dea22bed-7137-42e1-ac03-016e9dbf2da6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/dea22bed-7137-42e1-ac03-016e9dbf2da6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/dea22bed-7137-42e1-ac03-016e9dbf2da6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/dea22bed-7137-42e1-ac03-016e9dbf2da6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/dea22bed-7137-42e1-ac03-016e9dbf2da6?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/dea22bed-7137-42e1-ac03-016e9dbf2da6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/dea22bed-7137-42e1-ac03-016e9dbf2da6?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-14078544 ---- 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