{"record":{"id":"88ada7c7c42a9ef2","repo":"apache/superset","slug":"error-importing-self-model-name-error-summary","errorCode":null,"errorMessage":"Error importing {self.model_name}: {error_summary}","messagePattern":"Error importing (.+?): (.+?)","errorType":"exception","errorClass":"CommandInvalidError","httpStatus":422,"severity":"error","filePath":"superset/commands/importers/v1/__init__.py","lineNumber":147,"sourceCode":"            self.ssh_tunnel_priv_key_passwords,\n            self.encrypted_extra_secrets,\n        )\n        self._prevent_overwrite_existing_model(exceptions)\n\n        if exceptions:\n            detailed_errors = []\n            for ex in exceptions:\n                # Extract detailed error information\n                if hasattr(ex, \"messages\") and isinstance(ex.messages, dict):\n                    for file_name, errors in ex.messages.items():\n                        logger.error(\"Validation failed for %s: %s\", file_name, errors)\n                        detailed_errors.append(f\"{file_name}: {errors}\")\n                else:\n                    logger.error(\"Import validation error: %s\", ex)\n                    detailed_errors.append(str(ex))\n\n            error_summary = \"; \".join(detailed_errors)\n            raise CommandInvalidError(\n                f\"Error importing {self.model_name}: {error_summary}\",\n                exceptions,\n            )\n\n    def _prevent_overwrite_existing_model(  # pylint: disable=invalid-name\n        self, exceptions: list[ValidationError]\n    ) -> None:\n        \"\"\"check if the object exists and shouldn't be overwritten\"\"\"\n        if not self.overwrite:\n            existing_uuids = self._get_uuids()\n            for file_name, config in self._configs.items():\n                if (\n                    file_name.startswith(self.prefix)\n                    and config[\"uuid\"] in existing_uuids\n                ):\n                    exceptions.append(\n                        ValidationError(\n                            {","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/apache/superset/blob/f4587218dd19d046c3e4d00063e7d27f8a2ed354/superset/commands/importers/v1/__init__.py#L129-L165","documentation":"Error \"Error importing {self.model_name}: {error_summary}\" thrown in apache/superset.","triggerScenarios":"A v1 asset import fails while importing one of the bundled models.","commonSituations":"Importing a v1 asset bundle where an individual entity fails to import (validation error, DB conflict, or missing dependency).","solutions":["Inspect the error_summary in the message to see which asset file failed and why.","Fix the offending YAML/JSON entry in the import archive and retry the import."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4587218dd19d046c3e4d00063e7d27f8a2ed354","analyzedAt":"2026-08-14T22:39:27.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}