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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RohanSingh
New Member

Unable to create external table through notebook

While I am trying to create an external table reffering to the microsoft documentation:

https://learn.microsoft.com/en-us/training/modules/work-delta-lake-tables-fabric/3-create-delta-tabl...
df.write.format("delta").saveAsTable("myexternaltable", path="Files/myexternaltable")

 

spark is through error 

Py4JJavaError: An error occurred while calling o7281.saveAsTable.

java.lang.AssertionError: assertion failed: Only managed tables are supported

1 ACCEPTED SOLUTION
RohanSingh
New Member

Hi I have check the documentation online and the issue was with the lakehouse I was writting to.
Currently, Fabric only support writting external table to lakehouse without schema. 

Can reffer to Note section:
https://murggu.medium.com/creating-managed-and-external-spark-tables-in-fabric-lakehouse-ef6212e75e8...

 

Hence, I changed the lakehouse with no schema. It was working fine

View solution in original post

3 REPLIES 3
Ananth_Kumar_BS
Regular Visitor

When creating a Lakehouse, a pop-up will appear asking for the Lakehouse name. Below that, there’s a checkbox labeled "Lakehouse Schema (Public Preview)".
Make sure to uncheck this option — only then will you be able to create external managed tables in the Lakehouse.

RohanSingh
New Member

Hi I have check the documentation online and the issue was with the lakehouse I was writting to.
Currently, Fabric only support writting external table to lakehouse without schema. 

Can reffer to Note section:
https://murggu.medium.com/creating-managed-and-external-spark-tables-in-fabric-lakehouse-ef6212e75e8...

 

Hence, I changed the lakehouse with no schema. It was working fine

suparnababu8
Super User
Super User

Hi @RohanSingh 

 

have you loaded a your csv/excel file into a dataframe before writing this code?

 

Could you please share your full code. So, that we can try to fix the issue.

 

Thanks!

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.