GitHub user meyyazhagan edited a comment on the discussion: Best Practices for 
Storing Superset Dashboards in Git

Many thanks for the note @ampil 

Export/Import approach works fine on same environment. if I try to export from 
one env and import them on other, it fails.

Hence wondering to see an options to implement the superset as code eventually 
it works for all environment by using environment specific changes over 
pipeline.

**Error log:**

_2025-07-02 
08:40:34,555:INFO:superset.commands.dashboard.importers.dispatcher:Command 
failed validation
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 64, in 
run
    raise exc
  File "/app/superset/commands/dashboard/importers/dispatcher.py", line 57, in 
run
    command.run()
  File "/app/superset/commands/importers/v1/__init__.py", line 71, in run
    self.validate()
  File "/app/superset/commands/importers/v1/__init__.py", line 109, in validate
    raise CommandInvalidError(
superset.commands.exceptions.CommandInvalidError: Error importing dashboard
2025-07-02 08:40:34,555: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 64, in 
run
    raise exc
  File "/app/superset/commands/dashboard/importers/dispatcher.py", line 57, in 
run
    command.run()
  File "/app/superset/commands/importers/v1/__init__.py", line 71, in run
    self.validate()
  File "/app/superset/commands/importers/v1/__init__.py", line 109, in validate
    raise CommandInvalidError(
superset.commands.exceptions.CommandInvalidError: Error importing dashboard_

GitHub link: 
https://github.com/apache/superset/discussions/30190#discussioncomment-13638253

----
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]

Reply via email to