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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
LuukP
Helper I
Helper I

Unable to refresh: Invalid credentials

For the past three days, any reports that are accessing data in SharePoint or from Dataverse are creating errors during their scheduled refresh.  I can refresh these reports without any issues in PBI Desktop, but after publishing and refreshing, I get the following error.

 

Data source error{"error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials","pbi.error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"The credentials provided for the Web source are invalid.

(Source at https://xxxxxx.sharepoint.com/sites/ITSupport/Shared%20Documents/Power%20BI/CanadianPostalCodes2023_csv/_api/contextinfo .)"}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},{"code":"Microsoft.Data.Mashup.CredentialError.DataSourceKind","detail":{"type":1,"value":"Web"}},{"code":"Microsoft.Data.Mashup.CredentialError.DataSourcePath","detail":{"type":1,"value":"https://xxxxxx.sharepoint.com/sites/ITSupport/Shared%20Documents/Power%20BI/CanadianPostalCodes2023_csv/_api/contextinfo"}},{"code":"Microsoft.Data.Mashup.CredentialError.Reason","detail":{"type":1,"value":"AccessUnauthorized"}},{"code":"Microsoft.Data.Mashup.MashupSecurityException.DataSources","detail":{"type":1,"value":"[{\"kind\":\"Web\",\"path\":\"https://xxxxxx.sharepoint.com/sites/ITSupport/Shared%20Documents/Power%20BI/CanadianPostalCodes2023_csv/_api/contextinfo\"}]"}},{"code":"Microsoft.Data.Mashup.MashupSecurityException.Reason","detail":{"type":1,"value":"AccessUnauthorized"}}],"exceptionCulprit":1}}} Table: Postal Codes.

 

It seems to have coincided with the Office 365 outage earlier this week, but I am not sure it is related.

 

For a few reports, they are trying to pull data from an Excel spreadsheet in SharePoint, and for another report it is trying to read a table in Dataverse.  I get essentially the same error in both.

 

Any ideas, anyone?  Thanks in advance!

 

Luuk

1 ACCEPTED SOLUTION
LuukP
Helper I
Helper I

I was able to resolve my issue!

 

I had to go into Settings -> Manage Connections and Gateways (in app.powerbi.com) where I could see all my connections.  Clicking the status icon showed that the connections I was having issues with were Offline.  I was able to re-enter my credentials there (click on the ... next to the name field and select Settings), and then clicked the status icon again.  At that point, it showed that the connection was Online.  I refreshed my Semantic Models after that for each of my reports and they worked!

 

I hope that helps someone in the future!

 

Luuk

View solution in original post

3 REPLIES 3
LuukP
Helper I
Helper I

I was able to resolve my issue!

 

I had to go into Settings -> Manage Connections and Gateways (in app.powerbi.com) where I could see all my connections.  Clicking the status icon showed that the connections I was having issues with were Offline.  I was able to re-enter my credentials there (click on the ... next to the name field and select Settings), and then clicked the status icon again.  At that point, it showed that the connection was Online.  I refreshed my Semantic Models after that for each of my reports and they worked!

 

I hope that helps someone in the future!

 

Luuk

collinq
Super User
Super User

Hi @LuukP ,

 

Are you able to access that file directly in SharePoint?  That would be the first step to confirm that you have permissions.  Then, the next step would be to confirm that your gateway is working t oget tothat file.  AND, confirm that the gateway server itself is back up and running if this is related to the global outage.  Not only the server needs to be running, but all the Power BI services are "on".




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

Proud to be a Datanaut!
Private message me for consulting or training needs.




Hi @collinq ,

 

Yes, I have confirmed that I have permissions to the files in question, and that the gateway is running and at the latest version.  They still fail.  Any reports that are running against our SQL server only are still working, it is only those reports that access a SharePoint file or a Dataverse table that fail, even though I can access those sources directly using my credentials.

 

Thanks!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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