Power BI DirectQuery mode - "Couldn't load the model schema". But able to do transformations in Query editor - powerbi

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.

Related

Power BI Dataset can not find Firebird database

After a Firebird 3.0 update, our PowerBI Dataset can't find the Firebird database, although the ODBC Setup works just fine.
But the most bizarre part, I can create a new Dataflow-set with the exact same data source (same Gateway to ODBC Source) and it works!
I've created a whole new Workspace and uploaded the Dataset/Report into it, the same error occurs.
Some Info:
We've recently updated our Firebird database from 2.5 to 3.0
Our connection worked just fine with 2.5
The ODBC-Source connects to a raw Firebird (main.FDP) database.
A direct connection to the live-Data is not possible, the ODBC-Setup throws an error (File database not found), so I copied the main.FDP into a different folder, that way the ODBC setup connects successfully.
On Power BI Desktop via Power Query Editor, I can see the actual live data, but if I "Close & Apply", the same error occurs (File Database not found) on the refreshing window.
#Mark Rotteveel, thanks for the Solution.
The Solution was the pathing, i added "localhost:[...]" as prefix and it works.

PowerBI having issue with Access DB having ODBC Connection

I have an accessDB which using ODBC connection to SQL and used in queries.
Tried to use the queries to create a report on PowerBi, Issue is whenever I tried to update the dataset it gives me ODBC--call failed.
Tried created the ODBC connection on gateway machine. they are all 32 bit [ODBC/Power Bi Desktop] etc.
Can someone please help?
had to install office 64bit and access 64bit driver
also had to refresh all the linked tables and views from access to rectify the issue.

Live connect to SSAS Tabular from Power BI not working

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

Power BI Desktop - how do i see custom visuals

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

an error occurred during an attempt to establish a connection to the external data source

I have one Tabular SSAS project & I have deployed it on SQL Server Analysis Service 2012.
Then I have created a BISM connection to that deployed project as in following way.
Then I have created one PowerPivot excel report out of that BISM workbook using its connection string & it is working correctly in Excel.
But when I upload it to the SharePoint, it give me following error while refreshing the Data from BISM workbook.
this error is observed only when I open it on browser i.e. Excel Web Access.
but the same error is not observed when I refresh the report in Microsoft Excel 2013.
why is it giving error on only SharePoint i.e. Excel Services. due to this I am not able to change Slicer's either.
One of the solution I found was to use some Hot Fix of SQL Server. but I haven't tried this. Plz refer the below link Hot Fix for SQl Service Pack 1 Update
Please help!
Thanks in advance.
This refresh should be possible, assuming permissions are set up correctly. You should post ULS logs for the time period of the refresh.
Does this same thing happen if you do a scheduled refresh (and choose refresh now)?