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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Jeanxyz
Impactful Individual
Impactful Individual

Power BI gateway error on invalid connection credentials

I have added a sharepoint data source to an on-prem Power BI gateway using Oauth2 authentification mothod. Everything looks fine at the beginning, data refresh works most of the time. However, the data source connection suddenly fails consecutively. The error message is as beblow:

{"error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials"....

 

Upon checking, there is nothing wrong with credentials or sharepoint access. I temporarily fix the issue by editing the data source in the gateway and update Oauth2 credentials with the same login. But the same type of issue will occur again some weeks later.

2 REPLIES 2
Anonymous
Not applicable

 Hi @Jeanxyz ,

Based on the information, you can follow these steps:

1.Check if there are any network or firewall issues that could be blocking the connection.

2.Try to use a different authentication method, such as Anonymous authentication or Windows authentication, to see if the issue persists.

3.You can update Gateway to the latest version.

4.You can check if there have been any recent changes(for example: credentials, data sources, etc.).

Best Regards,

Wisdom

Jeanxyz
Impactful Individual
Impactful Individual

The same issue occurred again on Dec. 24th morning, I have the impression that the Oauth token is only valid for 30 days, users need to re-login to refresh the data source connection. 

 

There is an article explaining how Oauth token works. https://www.vuepilot.com/support/article/microsoft-power-bi-authentication-information/

In my case, I can not change the connection method for a sharepoint data source and I'm hesitant to ask for a special account with unlimited token expiration duration - this will increase the credential admin workload. So I'm a bit stuck here.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.