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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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)

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)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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