Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing dashboard error #27284

Closed
3 tasks done
aibunny opened this issue Feb 28, 2024 · 3 comments
Closed
3 tasks done

Importing dashboard error #27284

aibunny opened this issue Feb 28, 2024 · 3 comments

Comments

@aibunny
Copy link

aibunny commented Feb 28, 2024

Bug description

Hello guys, I am facing an issue importing and exporting superset dashboards once I export a dashboard I have to edit the database files then zip the dashboard and try to re-import it to the same superset instance, I get this error also via the api. Anyone who knows what I am missing.

Screenshot from 2024-02-27 16-30-41
Screenshot from 2024-02-27 16-25-25

How to reproduce the bug

  1. export a dashboard zip
  2. unzip the dash
  3. edit the database uri and database name
  4. zip the dashboard
  5. Re-import it again

Screenshots/recordings

No response

Superset version

3.1.1

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • 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.
@maudrid
Copy link

maudrid commented Mar 8, 2024

I ran into this issue also and it was my own fault.
Please compare the zip file you exported with the one that you modified.
In my case I had messed up the folder structure.
Original:

Root
  |
  ->  dataset_export_20240308T102914
         |
          -> Databases
          -> Datasets

My version:

Root
  |
   -> Databases
   -> Datasets

There needs to be a directory in the root of the zip file.

@aibunny
Copy link
Author

aibunny commented Mar 11, 2024

Thanks lemme try it

@aibunny
Copy link
Author

aibunny commented Mar 11, 2024

This solved it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants