cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results for 
Search instead for 
Did you mean: 

Recovering Lost Dashboard Data

Anton2
New Contributor II

Hello,
I attempted to update the SQL warehouse ID for all our dashboards using the Databricks SDK lakeview.update method. However, I mistakenly passed a dashboard object without the serialized_dashboard value, which resulted in all our dashboards becoming empty.

Fortunately, they are still published, and I would like to know if there is any way to retrieve the JSON content from the published dashboards and use that data to restore the draft versions.

Is there a method or API call that allows us to extract the published dashboard JSON and restore our drafts?

4 REPLIES 4

Stefan-Koch
Valued Contributor II

Hi @Anton2 

You can get the Dashboard-definition with the databricks cli. You need the id of the published Dashboard, which you see in the url, as example:

StefanKoch_0-1741102227613.png

Then, open a Terminal, run databricks cli, and save the output in a json file:

databricks lakeview get 01efdce4fd64105f9030f5b203c77cf9 > dashboard.json

you can see the content in an editor:

StefanKoch_1-1741102337971.png

Also with the databricks cli, you can create new dashboards. I didn't had the time to test it, but you should be able to make it work.

databricks lakeview create -h  

 

StefanKoch_2-1741102480234.png

You may have to change the json-file, that only the request body is in there.

I'm looking forward to your answer as to whether it worked

Anton2
New Contributor II

Unfortunately, this approach retrieves only the draft version of the dashboard, which is already empty in our case, resulting in an empty object response. However, the published version is still working.

My question is: How can we obtain the JSON data of the published dashboard, and where is it stored?

I have reviewed the Databricks documentation but couldn't find any relevant information on this.

I'm having a similar problem. The published dashboard must be stored somewhere. Can anyone at Databricks help us here?

LeviDane
New Contributor II

I am facing the same.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now