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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
poojitha_yeluru
New Contributor III

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
arlindTrystar
New Contributor III

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

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.

poojitha_yeluru
New Contributor III

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?

fedezimm
New Contributor

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?

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. 

Helpful resources

Announcements
Top Solution Authors
Users online (3,086)