Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello,
I am trying to connect to Azure Cosmos DB by writing a sql statement, but I am unable to fetch the data.
It says Datasource error (Screenclip attached).
I am able to get the data with URL and Database name, ,But when I entering Sql Statement it is giving an error.
Can anyone please help me.
Regards,
Waseem
@Waseem_22 , with _ts it is giving an error. Can you check if that SQL is running directly on DB
Thanks for replying @amitchandak , I have created a sampleDB provided by CosmosDB, which created a table with just 4 rows, I am trying to write SQL Statement based on that.
I am writing a sql statement as
Select * From Persons where id = '61476e5d-ba88'.
Even with this I am getting the same error as
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 78 | |
| 48 | |
| 34 | |
| 31 | |
| 29 |