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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
goldenarm253
Frequent Visitor

Issue Connecting Fabric Warehouse to Excel - SSPI Context Error

I'm experiencing an issue linking my Fabric warehouse to Excel. It seems to be specific to Excel, as Azure Data Studio connects without any problems.

Here's the error message I received:

 

DataSource.Error: Microsoft SQL: The target principal name is incorrect. Cannot generate SSPI context.
Details:
DataSourceKind=SQL
DataSourcePath=datawarehouse.fabric.microsoft.com;SomeName
Message=The target principal name is incorrect. Cannot generate SSPI context.
ErrorCode=-2146232060
Number=0
Class=11
State=0

 

Has anyone encountered this before, or can offer guidance on troubleshooting this error?

Thanks in advance!!!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

you seem to be trying to connect with your Windows credentials.  Try OAuth2 instead.

View solution in original post

5 REPLIES 5
goldenarm253
Frequent Visitor

Worked!

Thanks

AndyDDC
Most Valuable Professional
Most Valuable Professional

Hi @goldenarm253 how are you trying to connect to the Fabric Warehouse?  E.G Get Data?

 

AndyDDC_0-1730987417284.png

 

AndyDDC_1-1730987513102.png

 

 

Correct, I use Get Data --> SQL Server.  I pasted server name from Fabric.  Then the error pops up.  

Clear the data source permissions, then reauthenticate with OAuth2  (Microsoft account). Do not use the Windows option.

lbendlin
Super User
Super User

you seem to be trying to connect with your Windows credentials.  Try OAuth2 instead.

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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

Top Solution Authors
Top Kudoed Authors