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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Roel_Evers
New Member

Implementing OLS in a semantic model ( Azure SQL Server db ) leads to "Could not load model"

Hi guys

 

Maybe I am missing something very basic here, but I can't figure it out.

When I create a very simple import model in Desktop from an Azure SQL server database and implement OLS ( via tabular editor ), even just restricting access to a single column, the view-as role option leads to a "Cannot load model" "We couldn't connect to your direct query source or internal model. Double check... Either the user does not have access or the database does not exist"

A colleague of mine tried the same thing, with the same error.

I installed the latest version of PBI, but same error.

 

Possible related, but still baffling, is that the error message show a user id different from the user I am connecting the database with/am logged into desktop with.

It is the id from an account that is connected to Windows, so i Have no way of disconnecting it from the "Select account" prompt.

When my colleague tries she gets the error, but with her own user id.

 

I am used to working with OLS in AAS, which never caused me any trouble.

 

Anybody experience this before ?

 

1 ACCEPTED SOLUTION
Roel_Evers
New Member

Very silly...

After doing the same actions in Analysis Services ( Visual Studio ) I noticed that I have to select model permissions for the role and that certain permission ( anything but Read ) do not allow OLS.

I checked my PowerBI model and it still had None as model permissions. After setting that to Read the problem was resolved,

 

Yes, it was something very basic...

View solution in original post

2 REPLIES 2
Roel_Evers
New Member

Very silly...

After doing the same actions in Analysis Services ( Visual Studio ) I noticed that I have to select model permissions for the role and that certain permission ( anything but Read ) do not allow OLS.

I checked my PowerBI model and it still had None as model permissions. After setting that to Read the problem was resolved,

 

Yes, it was something very basic...

Anonymous
Not applicable

Hi @Roel_Evers ,

 

Thanks for the sharing!! That's really helpful.

 

 

Best regards,

Mengmeng Li

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.