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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
rmh
Frequent Visitor

cosmos sql statement

Any idea how to write sql statement when logging into powerbi with cosmos db connector. When I try I get the message shown below. I am not sure what the message is trying to tell me. Anyhow, does any one have the knowledge of how to? 

rmh_0-1639733041846.png

rmh_1-1639733223375.png

 

11 REPLIES 11
Anonymous
Not applicable

Hi @rmh ,

 

You may refer to:

https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/changelog.md

 

 

And according to the official document, please check if your queries contain:

Eyelyn9_0-1640135664855.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rmh
Frequent Visitor

my query includes Top , so according to your screenshot, this can not be served by the gateway. Is there any thing I can do about the qateway or the the SDK, and how?  

Anonymous
Not applicable

Hi @rmh ,

 

As the error message said——The provided by the gateway. This is a first chance (internal) exception that all newer clients will know how to handle gracefully. This exception is traced, but unless you see it bubble up as an exception (which only happens on older SDK clients), then you can safely ignore this message.

 

I think you need to upgrade to latest SDK version to fix the issue.

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Can we assume that your problem is with the query, not with the database connection?

rmh
Frequent Visitor

True

Are you running the December 2021 version of Power BI Desktop?

rmh
Frequent Visitor

rmh_0-1640005693737.png

 

You may want to upgrade to the latest version and then try the query again.

rmh
Frequent Visitor

I have now upgraded powerbi to december version, and I still get the same weird message. I can not get from the message what am I suppose to do or what the error is.. any idea? 

rmh_0-1640088006291.png

rmh_1-1640088122071.png

 

 

Did you follow @Anonymous 's suggestion and update the SDK as well? What about the gateway? That should be running 110.3

rmh
Frequent Visitor

and which SDK is that? and which gateway? where can I do 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 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI 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.