Credentials

InvalidConnectionCredentials

Power BI dataset refresh error: what it means and how to fix it.

What this means

An OAuth2 token expires roughly 1 hour into a long refresh and the gateway cannot auto-renew it.

How to fix it

  1. Shorten the refresh to under 1 hour (use incremental refresh).
  2. Re-enter the OAuth credentials.
  3. Split large loads so no single refresh runs past the token lifetime.
View on Microsoft Learn

Frequently asked questions

What does the "InvalidConnectionCredentials" error mean?
An OAuth2 token expires roughly 1 hour into a long refresh and the gateway cannot auto-renew it.
How do I fix it?
Shorten the refresh to under 1 hour (use incremental refresh). Re-enter the OAuth credentials. Split large loads so no single refresh runs past the token lifetime.
Where does this Power BI refresh error appear?
It appears in a Power BI semantic model's refresh history when a scheduled or on-demand refresh fails.

Related credentials errors

Catch this automatically

RefreshRadar monitors every Power BI dataset refresh and emails you when one fails, with the likely cause and the fix, so you are not hearing about a broken refresh from your stakeholders first.