kirmorozov1992 opened a new issue, #32974:
URL: https://github.com/apache/superset/issues/32974
### Bug description
I create datasources/dashboards backup using commands "superset
export-dashboards", "superset export-datasources". But when I try to import
"superset import-datasources -p file.zip -u admin" or "superset
import-dashboards -p file.zip -u admin" I get this error:
2025-04-02
09:20:12,779:INFO:superset.commands.dashboard.importers.dispatcher:Command
failed validation
2025-04-02 09:20:12,779:ERROR:superset.cli.importexport:There was an error
when importing the dashboards(s), please check the exception traceback in the
log
Traceback (most recent call last):
File "/app/superset/cli/importexport.py", line 158, in import_dashboards
ImportDashboardsCommand(contents, overwrite=True).run()
File "/app/superset/commands/dashboard/importers/dispatcher.py", line 57,
in run
command.run()
File "/app/superset/utils/decorators.py", line 266, in wrapped
return on_error(ex)
File "/app/superset/utils/decorators.py", line 236, in on_error
raise ex
File "/app/superset/utils/decorators.py", line 259, in wrapped
result = func(*args, **kwargs)
File "/app/superset/commands/importers/v1/__init__.py", line 73, in run
self.validate()
File "/app/superset/commands/importers/v1/__init__.py", line 107, in
validate
raise CommandInvalidError(
superset.commands.exceptions.CommandInvalidError: Error importing dashboard
If zip file contains some breaking resource/chart, why the program could not
pass that and fails?
### Screenshots/recordings
_No response_
### Superset version
4.1.2
### Python version
3.10
### Node version
I don't know
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [x] I have checked Superset's logs for errors and if I found a relevant
Python stacktrace, I included it here as text in the "additional context"
section.
--
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]