Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
frithjof_v
Super User
Super User

Notebook - mount a lakehouse fails

I'm trying to mount a lakehouse from another workspace to my Notebook by using this code:

 

notebookutils.fs.mount( 
 "abfss://<workspace_id>@msit-onelake.dfs.fabric.microsoft.com/<lakehouse_id>", 
 "/test"
)

 

NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn

 

(Yes, I am replacing the <workspace_id> and <lakehouse_id> with the GUID's of my workspace and lakehouse)

 

I get an error: 

Py4JJavaError: An error occurred while calling z:notebookutils.fs.mount. : java.util.concurrent.TimeoutException: Futures timed out after [30 seconds]

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @frithjof_v ,

 

I failed at first with this code because the default timeout may not be enough, after increasing the timeout I succeeded:

notebookutils.fs.mount (
    “abfss://<workspace_id>@msit-onelake.dfs.fabric.microsoft.com/<lakehouse_id>”,
    “/test”.
    {“timeout”: 600} 
)

vhuijieymsft_0-1724137660296.png

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @frithjof_v ,

 

Use this command to mount lakehouse to the current notebook.

mssparkutils.fs.mount(“abfss://<workspace_id>@onelake.dfs.fabric.microsoft.com/<lakehouse_id>”, “/lakehouse/test”) #mountPoint such as '/lakehouse/default'

 

The successful mount is shown below:

vhuijieymsft_0-1724036466566.png

 

You can also make sure that the mount is successful by executing this command below to list all the mount points.

mssparkutils.fs.mounts()

vhuijieymsft_1-1724036466571.png

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Thanks, it worked!

 

however MS recommends to upgrade to notebookutils instead of mssparkutils:

 

frithjof_v_0-1724092366260.png

NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn

 

 

I get an error when trying to do the mount using Notebookutils:

 

frithjof_v_1-1724092514165.png

NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn

 

Does this code work on your side?

Anonymous
Not applicable

Hi @frithjof_v ,

 

I failed at first with this code because the default timeout may not be enough, after increasing the timeout I succeeded:

notebookutils.fs.mount (
    “abfss://<workspace_id>@msit-onelake.dfs.fabric.microsoft.com/<lakehouse_id>”,
    “/test”.
    {“timeout”: 600} 
)

vhuijieymsft_0-1724137660296.png

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Thanks!

 

It seems perhaps the default timeout of this function is too low, perhaps that it something which the dev team should adjust.

 

Thanks for showing the workaround!

Anonymous
Not applicable

Hi @frithjof_v ,

Could you please mark this helpful post as “Answered”?

 

This will help others in the community to easily find a solution if they are experiencing the same problem as you.

 

Thank you for your cooperation!

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Hi @Anonymous 

These failures are happening in our default LH mounts, even before our notebook cells start executing.  Is this the same bug?

 


Have you reported this bug to the PG yet?  Is there an ICM number that you can share?  If you cannot share that identifier here, can you please add the details to the internal notes on my SR:
TrackingID#2501220040016849

This needs to be added to the "known issues" list, if customers are expected to use workarounds to avoid these bugs in their default mounts.

Customers should not be forced to make sure that the (default) mount is successful by executing this command to list all the mount points. mssparkutils.fs.mounts(). 

... It would be far better if the PG would crash the notebook right at the start, as opposed to allowing the notebook to begin execution with an invalid session/environment.  No Fabric customer wants to deal with an invalid session;  and we don't want to experience random and unpredictable errors in our code, as a result of a software bug from Microsoft.   The experience is very confusing to a pyspark-notebook-developer, and is even more confusing when a developer must explain to their users why their workloads are dying.  These end-users are NOT likely to believe us (an average pyspark-notebook-developer)  when we blame the Microsoft Fabric platform for our unreliable workloads.  Hopefully this makes sense.  (... yet it has been months since you shared your workaround and there is still no relief from the PG, and nothing appears in the "known issues" list.)

 

 

 

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.