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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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