I have a working SSAS tabular model and I want to connect Power BI with live connection to this model. In the model there is a role (READ) for user DOMAIN\aldo. In Power BI desktop everything works fine. I can create report I can see data. In Power BI services I created gateway and successfully connected gateway. Upload to Power BI services was without problems. But despite of this I cannot see data in Power BI services.
Details:
ssas runs on NT service\mssqlserverolapservices
ssas admin technicUser
user in PBI: aldo#boston.com
user in client (according to whoami /upn): aldo#seattle.com (this is user DOMAIN\aldo in SSAS role)
mapping done in gateway to replace boston.com with seattle.com
user used in Gateway: technicUser
I can see user aldo#seattle.com in profiler as effective user name
<Catalog>AW</Catalog>
<SspropInitAppName>PowerBI</SspropInitAppName>
<EffectiveUserName>aldo#seattle.com</EffectiveUserName>
Error message in POwer BI Services:
Couldn't retrieve the data for this visual. Please try again later.
Please try again later or contact support. If you contact support, please >provide these details.
Activity ID8661ae16-5c87-4d04-9049-1e841341f25e
Request ID15355511-8ce9-2842-0eea-df1117ecb280
Correlation ID3e50c72c-06e8-8c81-8a44-78af1f309549
TimeWed Mar 14 2018 14:01:41 GMT+0100 (Central Europe Standard Time)
Version13.0.4622.132
Any idea what I´m missing to make to work?
I had the same error, like you mentioned in your comment. It has to do with the 32 or 64 bit version of the DLL.
OLE DB provider 'MSOLAP.5' cannot be instantiated
COMException (0x80040154)
80040154 Class not registered
I managed to resolve this by deregistering the 32-bit versions
“C:\Program Files (x86)\Microsoft Analysis Services\AS OLEDB\110\msolap110.dll”
“C:\Program Files (x86)\Microsoft Analysis Services\AS OLEDB\120\msolap120.dll”
and registering the 64 bit version.
“C:\Program Files\Microsoft Analysis Services\AS OLEDB\120\msolap120.dll”
In a command prompt running as admin you use the regsvr32 command.
To register a dll:
regsvr32 <pathToDLL>
To unregister a dll:
regsvr32 -u <pathToDLL>
From reference: PBI Forums
Related
I'm trying to use the Direct Query feature in Power BI
It is working on Power BI Desktop, but when I publish it to Power BI online, it gives the error below.
The source database is Azure SQL Database with pricing tier Standard S0: 10 DTUs.
The Power BI license is Premium (I've also tried with Pro).
The firewall setting of the Azure SQL Database
The error:
Cannot load model
Couldn't load the model schema associated with this report. Make sure you have a connection to the server, and try again.
Please try again later or contact support. If you contact support, please provide these details.
Activity ID671fca94-b76e-4660-a944-dff3b06235b3
Request ID748c1fb6-d8c1-b1af-072a-ea49a79c6b64
Correlation ID862117fb-f595-4130-40be-f1d195fa7cbe
TimeSat Sep 18 2021 18:13:33 GMT+0200 (Central European Summer Time)
Service version13.0.16736.54
Client version2108.5.07549-train
Cluster URIhttps://wabi-europe-north-b-redirect.analysis.windows.net/
When you are using Azure SQL Database as a data source, you must provide credentials before the Power BI service shows the published report.
Follow the instructions to provide the credentials from this Microsoft document.
If credentials are not added error occurs when opening the published report or a dataset that is created with the DirectQuery connection.
I am trying to connect Snowflake to Power BI. I have downloaded the ODBC driver
https://sfc-repo.azure.snowflakecomputing.com/odbc/win64/latest/index.html but I get an error when I sign in to the snowflake connector with my Microsoft Account. I use AD to login to Snowflake.
This is the error:
section Section1;
shared Query1 = let
Source = Snowflake.Databases("XXXXXXXXXazure.snowflakecomputing.com",
"XXX_XXX_XXXX", [CreateNavigationProperties=null,
ConnectionTimeout=null, CommandTimeout=null]) in
Source;
Does your Azure AD login work in the Snowflake Web UI? I also believe there might be an issue with the March version of Power BI. Try using the February version instead (learn.microsoft.com/en-us/power-bi/desktop-latest-update-archive) and follow this blog: snowflake.com/blog/using-sso-between-power-bi-and-snowflake
Experienced the same problem. We created a case at Microsoft and they responded there's a faulty DLL file (C:\Program Files\Microsoft Power BI Desktop\bin\ODBC Drivers\Simba Snowflake ODBC Driver\SnowflakeODBC_sb64.dll in PowerBI March 2020 release (2.79.5768.1082) which is causing this failure.
We've received an updated DLL file and now the problem is solved. This update will be included in the next PowerBI release (don't know when this release is planned). For now there are a few possible solutions:
Request updated DDL with Microsoft and replace faulty file
Go back to the feb 2020 release of Microsoft PowerBI
Wait for next release PowerBI
As indicated by Suzy... In the March release of Power BI Desktop there was a bug introduced which caused this error. Completely install this version and download a previous version. I don't know if the April or May version has been released yet but I would hope MS fixed it in a more recent build.
If you are interested in some information on how to securely implement Power BI scheduled refreshes without using the data gateway, check out the LinkedIn article I wrote within the last day: https://www.linkedin.com/pulse/securely-using-power-bi-snowflake-bryan-meier/
We are using PowerBI online. we purchased pro license.
I checked for my login and I am in Global Administrator role.
Still I found Refresh schedule on Dataset option disabled for me?
It is disabled, because your dataset is not refreshable. You should check What's supported? section of Configuring scheduled refresh article. You didn't mention what is the source of your dataset. In general, Power BI service needs access to the data source to be able to refresh the dataset. This means that either your data source should be somewhere in the cloud (e.g. Azure SQL Database, file on OneDrive and SharePoint Online, etc.), or there is a data gateway installed and configured.
I have been trying to connect to a SQL server DB via Power BI Desktop. The connection mode selected is DirectQuery . I am able to establish the connection to the SQL db. But in the report viewer i don't see the table loaded. And i keep getting this popup saying - Unexpected error. Couldn't load the model schema.
But when i open the query editor, i am able to see the table contents and do some transformations. But when trying to load it doesn't come up in the report viewer Fields pane on the right. Again get this error- Couldn't load the model schema.
I have tried the resolution related to windows defender. But get that -resetplatform is not an valid option.
Users can work around this issue by running the following command from
an elevated command prompt: "C:\Program Files\Windows
Defender\MpCmdRun.exe –resetplatform"
In case it helps someone, this is how i solved it.
When trying to connect to SQL server from PBI desktop, skip giving the port number in the server input box. Although the tool tip mentions u can enter as server:port.
By connecting this way, i was able to load the model both in report viewer as well as see data and transform on Query editor.
A very trivial issue. but took quite a while to figure out.
I had the exact same problem on my Windows 7 machine. I then installed the latest Power BI version (Version: 2.62.5222.761 64-bit (September 2018)) from the Microsoft store on my Windows 10 machine. Surprisingly, it worked there.
I've made custom visuals on my personal machine in the past but am trying to do the same using a corporate system.
I can see my custom visual at https://app.powerbi.com, but not through Power BI Desktop or on https://localhost:8080. I'm assuming these two are connected. When i run command pbiviz start from my CLI, the localhost doesn't launch, either.
I can't sign up for PowerBI web service at work, so I've used a personal account temporarily. I need to view and debug my custom visuals in localhost or within PBI Desktop instead.
I'm using Power BI version 2.46.4732.721 64-bit (May 2017).
My custom visual requires no data - it's the sample visual:
Power BI Desktop: When I import the custom visual into PBI Desktop, I see the static placeholder image. I get similar images when I click other graphics, e.g. Donut Chart. These graphics require data to show anything. But even if I try adding data to the custom visual, it just shows the placeholder. (No data is required in the web service version of PBI - the image just shows straight away.)
Localhost: The error I'm getting in IE11 & FF52 is from line 37 of visual.ts: this.target=options.element. "Unable to get property element of undefined". But surely the same variable is used in app.powerbi.com, where it's working fine. I get this line: plugin myTestVisualDC00AEEDDF6D475989B6E1D88E1A21DF_DEBUG.
I've already followed the debugging instructions about trusting certificates and enabling developer visuals within app.powerbi.com.
Does anyone know what I am doing wrong?
Thanks for any help
Emma