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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
v-cgao-msft
Community Support
Community Support

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
v-cgao-msft
Community Support
Community Support

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 @v-cgao-msft , Yes I hve enabled the Lakehouse Schema feature.

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?

v-cgao-msft
Community Support
Community Support

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
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.