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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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 is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.