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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply

An error occurred while calling o321.sql.

poojitha_yeluru_0-1723184190340.png

I have written the above code when iam running the code , Iam getting below error.

poojitha_yeluru_1-1723184250360.png

And also I have checked by restarting the kernal , getting the same error, and also I check the below code
spark.sql('''CREATE TABLE STUDENT(ID INT,NAME VARCHAR(20))'''), get the same above error,Can you help why Iam getting the error.
 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi all,

 

Please try add the following code to the top of notebook as the first cell. 

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

After testing this works for me.

vcgaomsft_0-1725353158715.png

 

This is a known issue and the Product group is working on deploying a fix.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi all,

 

Please try add the following code to the top of notebook as the first cell. 

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

After testing this works for me.

vcgaomsft_0-1725353158715.png

 

This is a known issue and the Product group is working on deploying a fix.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

I have run the same code in a cell but I'm still getting the error. 

fedezimm
New Member

I'm having the same issue, the error is intermitent, same code cell sometimes run well and sometimes failed. Please let me know if you have a resolution. This error started showing up when we change capacity from 2 to 4. Has this something to do with it?

Hi @Anonymous , Yes I hve enabled the Lakehouse Schema feature.

Anonymous
Not applicable

Hi all,

 

I have elevated this matter to the product group for further attention. I will provide an update in this thread as soon as I have new information.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Any updates?

Anonymous
Not applicable

Hi @poojitha_yeluru ,

 

Did you enable the Lakeshouse schema feature when you created Lakehouse?

vcgaomsft_0-1723190135866.png

I reproduced the same error.

vcgaomsft_1-1723190449997.png

For Lakehouse without this feature enabled, it has been tested to work fine:

vcgaomsft_2-1723190676970.png

Can you help me to confirm the above? Thks.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

I can confirm as well that reading/writing from Lakehouses without schema enabled works. The issue is with Lakehouses that have schema enabled. Why is this? Any resolution to this?

We did not have this issue up until now, even in the schema enabled Lakehouses.

arlindTrystar
Advocate I
Advocate I

any resolution? The same is happening for me, and I'm sure we did not change any permissions or something like that

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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