GitHub user dosubot[bot] added a comment to the discussion: Error while exporting datasources in superset version 2.1.0
<!-- Answer --> The error `DatasetNotFoundError: Dataset does not exist` happens when Superset tries to export datasets but cannot find one or more of the dataset IDs in its metadata database. The export command validates all dataset IDs before exporting, and if any are missing, it aborts the process and raises this error. This usually means there are references to datasets that have been deleted or are otherwise missing from the metadata, possibly due to manual changes or inconsistencies in the database. You can check your Superset instance for orphaned or missing datasets and ensure all referenced datasets actually exist before running the export again. The SQLAlchemy relationship warning you see is not directly related to this export failure, but it may indicate underlying data model issues that could contribute to missing datasets. More details on the export command's validation logic can be found [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/co mmands/export/models.py) and [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/dataset/export.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/100dc020-1f43-48d9-99f8-f20f27f8a956?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/100dc020-1f43-48d9-99f8-f20f27f8a956?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/100dc020-1f43-48d9-99f8-f20f27f8a956?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/100dc020-1f43-48d9-99f8-f20f27f8a956?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/100dc020-1f43-48d9-99f8-f20f27f8a956?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/100dc020-1f43-48d9-99f8-f20f27f8a956?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/100dc020-1f43-48d9-99f8-f20f27f8a956?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/35483) GitHub link: https://github.com/apache/superset/discussions/35483#discussioncomment-14584948 ---- 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]
