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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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
Anonymous
Not applicable

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
April Fabric Update Carousel

Fabric Monthly Update - April 2026

Check out the April 2026 Fabric update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.