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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

OLE DB: The connection failed because user credentials are needed and Sign-In UI is not allowed

Hi everyone, 

I'm hoping someone can help me with this problem. I'm trying to use the connection string from an existing PBI dataset to import certain tables into another report (without using DQ). I managed to do this using an OLE DB connection. The reason for utilizing this method is that I can use subsets of data from existing PBI datasets in my report. The first week it worked perfectly, but now it's started giving me the following error when I refresh the dataset (in PBI desktop): 

OLE DB: The connection failed because user credentials are needed and Sign-In UI is not allowed

I have tried:

  • Clearing (local and global) permissions and connecting again.
  • Re-adding my user id when prompted.
  • Clearing the cache.
  • Re-installing Power Bi.
  • Re-doing the data import in a new Power Bi report.

The same error happens when I try to download the dataset in Python, even though that worked too before. Does anybody know what causes this error when downloading a dataset using the connection string? Thanks in advance for your help.

 

7 REPLIES 7
Anonymous
Not applicable

So after another week of trial and error I have yet to find a solution. The absence of a response here makes me think we are dealing with a bug in the PBI Service (in the Analyze in Excel function specifically) or in Azure Analytics Services. I am going to log an issue as suggested by @amitchandak. If anyone comes across a solution in the meantime, they can post it here and I will highlight it. 

Can you help me find out how you made that connection?

travisg_06
Regular Visitor

I am having this exact same issue, and I have tried everything under the sun to fix it.  There is no good solution out there, and the error itself is so ambiguous that Google doesn't yield any meaningful results to help. 

 

I'm having this issue when trying to refresh the Power BI data in an Excel workbook.  Like you, this was working for weeks and then suddenly I'm getting this error and can't shake it.

Hello, how did you get that connection? If you help me??

amitchandak
Super User
Super User

@Anonymous , try this setting, if this does not work log an issue

 

Go to File-> Options and settings -> Options -> Security Option -> and check : Use My Default browser( Visible after scrolling)

if needed, clear the cache of the default browser

 

if needed log an issue -https://community.powerbi.com/t5/Issues/idb-p/Issues

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
Anonymous
Not applicable

Hi Amitchandak, sadly that did not work either. I don't think the problem is that I am not properly authenticated. Otherwise it would not happen in Python as well I would think. I will look into logging an issue later today, thanks for the suggestion. I'm still hoping there is some way to make the OLE DB connection work again on my end. 

I've discovered a way that resolves the issue for me. In the connection string, remove the sobe_wowvirtualserver- portion.

 

So for example this:

provider=MSOLAP.8;initial catalog=sobe_wowvirtualserver-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;data source=pbiazure://api.powerbi.com;mdx compatibility=1;safety options=2;mdx missing member mode=Error;identity provider=https://login.microsoftonline.com/commonhttps://analysis.windows.net/powerbi/api, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;update isolation level=2

 

Becomes this:

provider=MSOLAP.8;initial catalog=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;data source=pbiazure://api.powerbi.com;mdx compatibility=1;safety options=2;mdx missing member mode=Error;identity provider=https://login.microsoftonline.com/commonhttps://analysis.windows.net/powerbi/api, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;update isolation level=2

 

Once that was gone and the report replublished, I was able to set up a new Gateway connection

Cayshin_1-1730145957679.png

 

For authenticaiton method, choose Basic, but still enter in your Microsoft credentials.

Cayshin_0-1730145871035.png

 

Power BI will now happily refresh the report.

Cayshin_2-1730146107518.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors