Showing results for 
Search instead for 
Did you mean: 
sahilhira162 Regular Visitor
Regular Visitor

Your data source cannot be refreshed because the credentials are invalid

I have created a report and installed personal gateway on my system. I am extracting data from SQL Server, its working fine when I refresh in Power BI Desktop version but not in Power BI Online. I am getting error in my data credentials, which is the same credentials I use on SQL Server. Do I need to update it anywhere else as well. What changes should I make.?
"Your data source cannot be refreshed because the credentials are invalid"
PFA screenshot of my error.

Activity ID:3a84f4f9-6adc-64f0-8fff-8891d069f84e
Request ID:bb69b3e7-44fa-8609-3bd5-62462fc4dc72
Status code:400
Time:Tue Jul 11 2017 16:23:50 GMT-0400 (Eastern Standard Time)
Cluster URI:

If I use the other option, other than basic authorization i.e. WindowsWithoutImpersonation, it solves the credential error problem but still doesn't refresh.
Any help is appreciated, thank in advance.


Power BI Team mgmeyer
Power BI Team

Re: Your data source cannot be refreshed because the credentials are invalid

This forum is specific to Power BI Report Server On-Prem and not Power, if your having trouble with the gateway you can try the following:


Hope this helps, thanks!

Microsoft v-yulgu-msft

Re: Your data source cannot be refreshed because the credentials are invalid

Hi @sahilhira162,


Does this credential error occur to other data sources, expect for SQL Server? Since the error points to invalid credentials, please make sure username and password used to sign into data sources are up to date. In Power BI, go to refresh settings for the dataset. In Manage Data Sources, click Edit credentials to update the credentials for the data source. Also, make sure the authentication type and credential used in desktop and service are same. Reference: Troubleshooting


As kcantor suggested in this similar thread, please update your gateway to latest version for a test and clear your browser history, cache, and cookies to start fresh.


Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)