cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

1 REPLY 1

Simranarora
New Contributor III
New Contributor III

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
Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!