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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ivannye
Helper I
Helper I

Issue with my spark python notebook

Hi everyone, I have the issue below. When I run another notebook with the same parameters, it works fine but this one no.

ivannye_0-1725410855650.png

 

1 ACCEPTED SOLUTION
ivannye
Helper I
Helper I

I found the solution. you will need to add this code:

 

%%pyspark

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

 

It looks like it is a known issue and they are trying to solve it hopefully soon. 

 

https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-data-into-schema-enabl...

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Thanks for letting us know!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

ivannye
Helper I
Helper I

I found the solution. you will need to add this code:

 

%%pyspark

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

 

It looks like it is a known issue and they are trying to solve it hopefully soon. 

 

https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-data-into-schema-enabl...

GilbertQ
Super User
Super User

Hi @ivannye 

 

The error says a 403 which looks like a permissions error. Could you also make sure that all the column names do not have any spaces or reserved characters?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI 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.