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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Mikespan
Regular Visitor

Power BI Desktop - Failed connection to SQL Server Analysis Services through OLE DB connection

Hi everyone, 

I'm having some trouble in connecting from PBI desktop through OLE DB to my semantic model published in Power BI service, while in Excel works perfectly. I've already installed the client libraries needed, thus MSOLAP, AMO and ADOMD.

 

Firstly I tried to connect copying the procedure code used in Excel, thus:

 

let
Origine = OleDb.DataSource(

"Provider=MSOLAP.8;
Initial Catalog = (filename);
Data Source = powerbi://api.powerbi.com/v1.0/myorg/(filename);",

[Query =

"DEFINE ... EVALUATE..."])

in

Origine

but the following error message occurred:

 

DataSource.Error: OLE DB: IErrorInfo.GetDescription non riuscito con E_FAIL(0x80004005).
Message=IErrorInfo.GetDescription non riuscito con E_FAIL(0x80004005).
ErrorCode=-2147467259

 

Then I tried to connect using "Get data" from Power BI service, using the following connection strings:

 

1. The same string as before:

Provider=MSOLAP.8;
Initial Catalog = (filename);
Data Source = powerbi://api.powerbi.com/v1.0/myorg/(filename);

 

2. This alternative string:

Provider=MSOLAP.8;

Initial Catalog=sobe_wowvirtualserver-25026f7d-8077-462e-83fe-cbee25932ea0;

Data Source=pbiazure://api.powerbi.com;MDX Compatibility=1;

Safety Options=2;

MDX Missing Member Mode=Error;

Identity Provider=https://login.microsoftonline.com/common, https://analysis.windows.net/powerbi/api, 929d0ec0-7a42-4b2e-bc7c-b754a28bddcc;

Update Isolation Level=2

 

In both cases I received an error related to service principal authentication:

 

"Service principal profile is only supported in service-principal authentication flows."

 

So I used alternative credentials to overcome the problem. Nevertheless, the connection resulted in the same error as before:

 

"OLE DB: IErrorInfo.GetDescription non riuscito con E_FAIL(0x80004005)."

 

Can someone help me? Hope I've explained clearly.

 

Thank you

1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

Hi @Mikespan The error occurs because Power BI Desktop doesn’t support OLE DB (MSOLAP) connections to Power BI Service datasets. Unlike Excel, PBI Desktop requires connecting via “Get Data” → “Power BI Datasets” for published semantic models. OLE DB fails due to unsupported authentication and connection flow. For advanced access, use XMLA endpoints with supported tools like SSMS.

View solution in original post

1 REPLY 1
Akash_Varuna
Super User
Super User

Hi @Mikespan The error occurs because Power BI Desktop doesn’t support OLE DB (MSOLAP) connections to Power BI Service datasets. Unlike Excel, PBI Desktop requires connecting via “Get Data” → “Power BI Datasets” for published semantic models. OLE DB fails due to unsupported authentication and connection flow. For advanced access, use XMLA endpoints with supported tools like SSMS.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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