cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Error when importing .dbc of a complete Workspace

Baumeister
New Contributor II

I saved the content of an older Databricks Workspace by clicking on the Dropdown next to Workspace -> Export -> DBC Archive and saved it on my local machine.

In a new Databricks Workspace, I now want to import That .DBC archive to restore the previous notebooks etc. When I right click within the new Workspace -> Import -> Select the locally saved .DBC Archive, I get the following error:

dbcerror 

I already deleted the old Databricks instance from which I created the .DBC Archive.

Do you have any idea on how I could still save my notebooks/code?

Best wishes

2 REPLIES 2

Anonymous
Not applicable

@Sebastian K​ :

It looks like the error you are facing while importing the DBC archive could be due to the version incompatibility between the Databricks instance where you created the DBC archive and the one where you are trying to import it. Can you try and rule this out?

You can try using the Databricks command-line interface (CLI) to import the DBC archive. To do so, you need to first install the Databricks CLI and authenticate it with your Databricks workspace. Then, use the following command to import the DBC archive:

databricks workspace import_dir /path/to/dbc/archive

Dear suteja,

Thank you for your response. I tried importing the DBC archive in different Workspace versions and it unfortunately did not work either. (same error)

Other DBC archives of single folders from the Workspace can be imported to my current Workspace (I archived some folders of the old Workspace on a per folder basis in addition to the archive of the complete Workspace). Only the DBC archive of the complete Workspace does not work when importing and gives the error mentioned above.

Any other ideas?

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.