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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.