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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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