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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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

Fabric Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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