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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Access Unauthorized

We have to publish a report that has two sources, one from SQL DB & from Spreadsheet

There were no errors in the PowerBI gateway for SQL, but we are getting errors while testing on the spreadsheet location.

I checked the privacy settings on the Gateway and Power BI desktop and tried none, private, public, and organizational with no luck. 

also tried clearing data source permissions File-->Options and Settings --> Data Source Settings --> clear permission.

 

Error message,

DM_ErrorDetailNameCode_UnderlyingHResult:-2147467259

 

Microsoft.Data.Mashup.CredentialError.Reason:AccessUnauthorized

 

Underlying error code: -2147467259
Underlying error message: The credentials provided for the File source are invalid. (Source at \\mypc\sample data\superstoreus-2015copy.xlsx.)
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.CredentialError.DataSourceKind: File
Microsoft.Data.Mashup.CredentialError.DataSourcePath: \\mypc\Sample Data\SuperStoreUS-2015Copy.xlsx
Microsoft.Data.Mashup.CredentialError.Reason: AccessUnauthorized
Microsoft.Data.Mashup.MashupSecurityException.DataSources: [{"kind":"File","path":"\\\\mypc\\Sample Data\\SuperStoreUS-2015Copy.xlsx"}]
Microsoft.Data.Mashup.MashupSecurityException.Reason: AccessUnauthorized
Cluster URI: WABI-CANADA-CENTRAL-redirect.analysis.windows.net
Activity ID: 0732c37a-2d2b-4a15-9235-87c5311c3e1a
Request ID: db5326c8-ed3b-ea48-b6ce-00a4fc665073
Time: 2022-10-25 12:52:06Z

 

Can someone help me to troubleshoot the error

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , In the gateway setting, when you give the file path and windows credential. If that is not email mail sure, you give domain\username( to check the name-> right click on my pc and check)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@amitchandak   it worked, Thank you.

amitchandak
Super User
Super User

@Anonymous , In the gateway setting, when you give the file path and windows credential. If that is not email mail sure, you give domain\username( to check the name-> right click on my pc and check)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.