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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
PeterDaniels
Advocate II
Advocate II

Forbidden error using saveAsTable

I have a dataframe. Trying to simply saveAsTable (delta). I get a strange Forbidden error. I am admin in the workspace and I'm the one that created the lakehouse. I've tried just using a table name, using lakehouse name dot table name, and using dbo in the middle. Baffled. 

1 ACCEPTED SOLUTION

Yeah. I think the solution for now is to not use schema enabled lakehouses. Hopefully that feature will get more robust as it heads towards GA 

View solution in original post

4 REPLIES 4
PontusPersson
Advocate I
Advocate I

I have the same issue, and I know this has worked before. It stopped working yesterday (about 16-17 hours before this post was when I noticed it). Reading tables (e.g. spark.read.table("lakehouse.schema.table") does not work, but reading using path (e.g. spark.read.format("delta").load("Tables/schema/table")) does work. And same for writing. Receiving 403 forbidden error. Only happens on schema enabled lakehouse.

Anonymous
Not applicable

Hi @PeterDaniels ,

 

Thank you for your reply from frithjof_v .

 

I was able to reproduce your error with the preview schema feature enabled, and the error occurs seemingly because of an architecture mismatch.

vhuijieymsft_0-1724373778761.png

 

Using the statement “SaveAsTable” works fine, you can try it:

 

df = spark.read.format(“csv”).option(“header”, “false”).load( “Files/2019.csv")

# Create a new table
df.write.format(“delta”).saveAsTable(“test2”)

 

vhuijieymsft_1-1724373778765.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!

frithjof_v
Community Champion
Community Champion

Schema enabled Lakehouse?

 

Same issue here, it seems: https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-data-into-schema-enabl...

 

A possible solution was proposed.

 

Anyway, schema enabled Lakehouses have big limitations at the moment. It's a preview feature still.

Yeah. I think the solution for now is to not use schema enabled lakehouses. Hopefully that feature will get more robust as it heads towards GA 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

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