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
dk_dk
Super User
Super User

CosmosDB Account Key stopped working for dataset refresh on PowerBI Service

Hi,

 

I have made a simple report based on an Azure CosmosDB database. I have an account key which worked in PowerBI desktop to set up the datasource, do the query and publish. The published report was set to auto-refresh daily, and that worked fine for a few weeks, until a few days ago I started getting credential error (both for scheduled refresh, and trying manually on the PowerBI service).

 

I know the account key still works because I can still refresh with the same credentials in PowerBI desktop, and then republish the report and the data would update. It is just the refresh through PowerBI service that is broken for some reason.

 

I found this thread with a similar problem, but the accepted solution there does not help me.

If anyone has an idea on how to fix this, your suggestions are most welcome. It is quite cumbersome otherwise to open and re-publish from desktop every time I want to update the dataset.


Br,

dk




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





3 REPLIES 3
sahar_elnawawy
New Member

i have connected to CosmosDB by using Azure CosmosDB V1 . Its working fine in desktop but when i try to connect in PBI service it's not connecting. any clue 😞

v-xulin-mstf
Community Support
Community Support

Hi @dk_dk,

 

Could you provide some screenshots of your issue?

 

When data refresh failure because of password change or expired credentials, please refer:

https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-troubleshooting-refresh-scenarios#dat...

 

vxulinmstf_0-1632377387352.png

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

 

Hi @v-xulin-mstf ,

 

azuredb_refresh1.pngazuredb_refresh2.png

 

See the screenshots above. When I click edit credentials and enter the Account key for the cosmos db I get the above error, with status code 400.

 

However, I am able to manually refresh the same dataset in powerbi desktop using the same credentials, and then publish the updated report to the powerbi service. I have tried all 4 privacy level settings as a troubleshooting step - same error every time.

 

 

Br,

dk




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors