Forum Discussion
Cannot detach data item from notebook
- 6 months ago
Hello NotebookEnjoyer
What you're experiencing is how Fabric Notebooks are designed to behave!
In a Fabric notebook, only ONE Warehouse can be the “primary” Warehouse. The first attached Warehouse becomes permanently bound. That primary Warehouse can never be removed. Any additional Warehouses are secondary and can be removed. You can try this with the other Warehouse you have attached.
It seems the one you tried to remove is the first Warehouse you attached to your notebook.
Fabric internally assigns the first Warehouse as Notebook SQL execution context. So it follows this rule
First Warehouse = permanent
Subsequent Warehouses = optional
If you want to “change” the primary Warehouse:
- Create a new notebook
- Attach the desired Warehouse first
- Copy notebook content
- Delete the old notebook
This is the only supported way to change the primary Warehouse.
- 4 months ago
Hi, same problem, the solution that i found was deleting all sources from the OneLake source and then adding them again.
Hi NotebookEnjoyer ,
If you want to remove the lakehouse , choose some other lakehouse as Default and then try removing the lakehouse, it will get removed.
Step 1: In this sample i have two lakehouses attached to my notebook, the first one with pin symbol is default,so you cannot remove it.
Step2: Set the second lakehouse as default,
Step 3: Now you will be able to see the option for the lakehouse which you want to remove as it becomes not default
Thanks,
Srisakthi
Hi, same problem, the solution that i found was deleting all sources from the OneLake source and then adding them again.
- NotebookEnjoyer4 months agoAdvocate II
Amazing, it works.