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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
KarenFingerhut
Responsive Resident
Responsive Resident

Direct Query Cannot Load Model. Login Failed for user. The exception was by raised by the IDbConnect

Hi there

 

I have built a PBI desktop report in Direct Query Mode. The report is working fine for me.  The issue I have is that a colleague, who could access the PBIX file a week ago, cannot access it now. He can however access the published version. But I need him to be able to access the PBIX file to make changes. He can also access the DB and table in SQL and write a query against it.

 

The error message he is getting is below. 

 

KarenFingerhut_0-1597922776560.png

 

Can someone please shed some light on this. Its strange how he could access previously and now he cant. I've deleted the  data source permissions but that didn't make any difference

 

Many thanks

Karen

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @KarenFingerhut,

AFAIK, the current power bi pbix file connection credentials are stored locally.
Therefore, it means that it will prompt you to update/verify the data connection credentials if you send or download the pbix file directly and use it on another device or display the error message for any valid credentials to obtain and connect to the database.
Note: You are working in the direct query mode that will send the query each time you interact with visuals or load data. For the import mode data source, allows you to make some report layout changes to the pbix file if it does not operate on the backend query tables.

I hope this will help you know more about your scenario.
Best regards

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hello @KarenFingerhut,

AFAIK, the current power bi pbix file connection credentials are stored locally.
Therefore, it means that it will prompt you to update/verify the data connection credentials if you send or download the pbix file directly and use it on another device or display the error message for any valid credentials to obtain and connect to the database.
Note: You are working in the direct query mode that will send the query each time you interact with visuals or load data. For the import mode data source, allows you to make some report layout changes to the pbix file if it does not operate on the backend query tables.

I hope this will help you know more about your scenario.
Best regards

Xiaoxin Sheng

Good morning (UK Time 😁) Xiaoxin

Many thanks for your reply, and yes that makes sense.

With regards to Direct Query - On this occasion the report has to be in DQ as I want to embed a PowerApp in the report and write back to the Database, and then use the 15 mins scheduled refresh

I'll leave this open for today and see if I can resolve. If I can ill close the call, if not and I still have some issues i'll post a further reply.

Once again thank you

Kind regards

Karen

amitchandak
Super User
Super User

@KarenFingerhut , Go to edit connection and provide the connection details and try again.

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

Hi there

 

Sadly it didn't resolve the issue. Thanks anyway 🙂

 

K

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors