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

Ask the Fabric Databases & App Development teams anything! Live on Reddit on August 26th. Learn more.

Reply
SivaReddy2468
Frequent Visitor

403 Forbidden when reading the tables of the Lakehouse with sql and spark.sql

Hello,
I'm trying to read the delta tables from the Lakehouse, i'm getting the 403 forbidden error. 

SivaReddy2468_1-1725605766908.png

Same happening when i try to read with sql

SivaReddy2468_3-1725605848979.png

Note: Enabled the schema for the Lakehouse

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SivaReddy2468 

 

Currently there is a known issue when querying data from lakehouses which have enabled the schema. Please refer to the thread An error occurred while calling o321.sql. - Microsoft Fabric Community

 

As a workaround, try adding the following code to the top of notebook as the first cell. 

%%pyspark 
!echo "spark.trident.pbiApiVersion=v1">>/home/trusted-service-user/.trident-context

If the workaround doesn't work, you may need to create a new lakehouse without enabling the schema. Sorry for the inconvenience it may cause. The engineers are working on the fix now. We appreciate your patience. I will keep you updated once there is any progress. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @SivaReddy2468 

 

Currently there is a known issue when querying data from lakehouses which have enabled the schema. Please refer to the thread An error occurred while calling o321.sql. - Microsoft Fabric Community

 

As a workaround, try adding the following code to the top of notebook as the first cell. 

%%pyspark 
!echo "spark.trident.pbiApiVersion=v1">>/home/trusted-service-user/.trident-context

If the workaround doesn't work, you may need to create a new lakehouse without enabling the schema. Sorry for the inconvenience it may cause. The engineers are working on the fix now. We appreciate your patience. I will keep you updated once there is any progress. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! 

Hello @Anonymous 

Thanks for the replying. After applying the suggestions and trying to read the data, I encountered the following results

 

  1. Spark SQL:
    1. Reading from the dbo schema worked fine
       
      SivaReddy2468_5-1726205360480.png
    2. Reading from the other schema seems not working
      SivaReddy2468_1-1726204553646.png

       

  2. SQL
    1. Reading from the dbo schema worked fine
      SivaReddy2468_3-1726205210488.png

       

    2. Reading from the other schema seems not working
      SivaReddy2468_6-1726205418589.png

       

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 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.