dosubot[bot] commented on issue #33802: URL: https://github.com/apache/superset/issues/33802#issuecomment-2982819041
<!-- Answer --> Your metadata.yaml files have the correct version and type fields, but Superset’s import process for 4.1.x expects the type to be assets for all asset bundles, not Slice, Dashboard, SqlaTable, or Database. The type field is optional, but if present, it must match what the import command expects—usually assets for the v1 importers. If you set type: assets (or just omit the type field entirely and only include version: 1.0.0), the import should proceed as long as the rest of the bundle is valid. Also, make sure there are no extra files (like hidden system files) in the ZIP and that the folder structure matches what Superset expects. The error you’re seeing is triggered if the version is missing, the type is unexpected, or the YAML is malformed ([source](https://github.com/apache/superset/blob/a1cbd2578e24ed6c72024e1d1cf195846ace05d7/superset/commands/importers/v1/utils.py)). Try updating your metadata.yaml to: ```yaml version: 1.0.0 type: assets ``` or just ```yaml version: 1.0.0 ``` and see if the import works. If you still get the error, double-check for encoding issues or stray files in the ZIP. <!-- 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/9de6fa72-5943-45c9-96e9-27def75f7d1d?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/9de6fa72-5943-45c9-96e9-27def75f7d1d?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/9de6fa72-5943-45c9-96e9-27def75f7d1d?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/9de6fa72-5943-45c9-96e9-27def75f7d1d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/9de6fa72-5943-45c9-96e9-27def75f7d1d?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/9de6fa72-5943-45c9-96e9-27def75f7d1d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/9de6fa72-5943-45c9-96e9-27def75f7d1d?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33802) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
