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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.