Failed Synchronization of Files Using Databricks Extension in VS Code

Anto23
New Contributor

hi,

I am trying to set up Databricks Extension in VS Code. I follow the steps as per the guide below

https://docs.databricks.com/en/dev-tools/vscode-ext/tutorial.html 

When i move to step 6 (see in the above guide) i follow the steps and i create successfully a destination location in Databricks (In workspace - i can see the folder created in Databricks). However, when i click to start the synchronization and then i receive this error : 

db.png

When i change to Repos i receive the same error which says to switch to Workspace. Please note i need to use Workspace

Simranarora
Databricks Employee
Databricks Employee

Hi @Anto23 ,

 

Greetings from Databricks.

Based on the above information, it seems Files in Workspace is currently disabled for your Databricks environment. This feature allows storing and accessing non-notebook files alongside your notebooks and code.

Fortunately, enabling Files in Workspace is simple. You can do this through the Databricks REST API:
https://docs.databricks.com/api/azure/workspace/workspaceconf/setstatus

  • API endpoint: {{db-workspace-base-url}}/api/2.0/workspace-conf
  • Method: PATCH
  • Body:

JSON
{
"enableFilesInWorkspace": "true"
}

Best Regards,
Simran