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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Ali_CloudBI
Frequent Visitor

Select data from Lakehouse table from schema

Hi all,

I have an issue working with the delta table in Lakehouse when the data is created in a schema other than dbo. The table is created under the schema by  SourceDF.write.format("delta").mode("overwrite").save(TablePath), however, I get an error on reading the table. Has anyone tested this before?

Ali_CloudBI_0-1726484383610.png

 

5 REPLIES 5
Anonymous
Not applicable

Hi @Ali_CloudBI ,

 

Thanks for the reply from lbendlin .

 

I get an error when I query the table below the dbo using your syntax.

vhuijieymsft_0-1726558607470.png

 

After switching to this syntax, it runs fine.

%%sql
USE daisyTest1;
SELECT * FROM products LIMIT 1000.

vhuijieymsft_1-1726558607474.png

 

This syntax can not specify the schema in the red box, only the blue box.

vhuijieymsft_2-1726558623213.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!

I know it works without schema, my intention is to create different schemas and create the related tables under each own schema  

lbendlin
Super User
Super User

can you run queries against dbo tables?

Maybe omit the db name?

Hi @lbendlin , same error when use dbo as the schema, however it works fine when use LakehouseName.TableName. enabling schema in Lakehouse still in preview and looks like this a bug. 

If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.