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
sha9189
Regular Visitor

Construct File API Path to use in a Notebook to access data in non-default Lakehouse Folder

I am trying to set up Great Expectations (GX) to use in a Notebook. 

 

Tutorial: https://learn.microsoft.com/en-us/fabric/data-science/tutorial-great-expectations

 

Code: 

context = gx.get_context(project_root_dir="/lakehouse/default/Files/gx")
 
The above code connects GX to the FileDataContext folder hierarchy. This approach requires the my GX Project Root Dir folder to sit in the DEFAULT Lakehouse.
 
But I want to point to the same folder but need the DEFAULT lakehouse to be another lakehouse .
 
When I use ABFS Path like: 
context = gx.get_context(project_root_dir="abfss://xxxxxxxxxxx@onelake.dfs.fabric.microsoft.com/xxxxxxxx/Files/gx")
 
where the actual path parts are replaced with xxxxx to maintain privacy. 
 
Issue: GX is not able to access the folder I need it to access. How do I construct a File API Path or what do I use for the project_root_dir so that it can access a folder in the lakehouse that is not the default lakehouse. 
 
 
1 REPLY 1
eileen_iTalent
Kudo Kingpin
Kudo Kingpin

Hello @sha9189 

 

Please post your question directly to the appropriate Fabric forum.  

https://community.fabric.microsoft.com/

 

Please let me know if you have any questions.

~Eileen

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.