Analysis Services Tabular 1400 project - not a valid data source - ADLS data source - visual-studio-2017

Since 08 May 2018 there seems to be an issue with Azure Data Lake Store data source using Microsoft Analysis Services Project extension.
We are using ,
Visual Studio 2017 15.7.1
Microsoft Analysis Services Projects 1.26 Extension
Tabular model compatibility level 1400
We get the below error when we try to open the Model.bim from an already existing project.
The given data source reference is not a valid data source
We only have one data source which is an Azure Data Lake Store.
If we click OK and proceed it throws error This model is already open in another location by the same user, please close the other project before working on this one.
So we deleted the Model.bim_xx.settings and tried again it throws "….not a valid data source" error
We also tried to create a brand new Analysis Services Project (Tabular model) and tried to do Import from Data Source - then select Azure Data Lake Store - sign in - It connects successfully - doesn't go into Power Query editor
When click OK - there is nothing under Data Source - in Tabular Model Explorer
If we try anything after clicking OK - VS 2017 crashes.

This is acknowledged as an issue in Microsoft Analysis Services Projects Extension version 1.26 - Microsoft are working on it.
Uninstall version 1.26 and re-install 1.25. You may need to request the .vsix file for version 1.25 from extension team. Contact them in the respective Visual Marketplace page.
https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftAnalysisServicesModelingProjects

Related

powerBI XMLA Error deploying metadata changes

I'm using Visual Studio (SSDT) to modeling and deploy my model to PowerBI Premium Workspace and create my report in PowerBI desktop, however now I've added new tables and applied changes on that and I'm not able to deploy it again.
Tabular Model Designer
Exception has been thrown by the target of an invocation
Cannot deploy metadata. Reason: Failed to save modifications to the server. Error returned: 'Failed to commit the metadata change, please try again later.
Technical Details:
RootActivityId: 7c302aa2-e8d3-417f-8fb7-3bdc9969e14f
After the last Microsoft update this issue was resolved. Now the model deploy using XMLA endpoint is working well again. Tks

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

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.

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

How can I install a shared data source with no credentials in SSRS

I'm using SQL Server 2005 with Reporting Services. I have many reports installed, some using shared data sources and some not; some go to web services, some to sql server databases, and now I'm trying to connect to a DB2 database.
I have successfully created a shared data source and report in Visual Studio 2005. I can pull data just fine and display it on my report in the designer. I am now trying to install the report and datasource through the ssrs web service (the same way I have for all other reports).
The problem is that most of our data sources use Integrated Security, and for this data source I am using 'Credentials are not required' since they are listed in the connection string. Here's my install code:
Dim definition As New ServiceProxy.DataSourceDefinition
definition.ConnectString = connectionStringIncludingUsernameAndPassword
definition.Extension = "OLEDB"
definition.CredentialRetrieval = ServiceProxy.CredentialRetrievalEnum.None
ServiceWebService.CreateDataSource(dataSourceName, containingFolderFromRoot, True, definition, Nothing)
This also works fine and gives no errors, and appears to create the datasource properly in ssrs. But when I go to run the report I get this error:
The current action cannot be completed
because the user data source
credentials that are required to
execute this report are not stored in
the report server database.
(rsInvalidDataSourceCredentialSetting)
My report is properly connected to my data source, and my data source is properly set to credentials not required, so it is all the same as it is inside Visual Studio. I'm out of ideas.
The problem was several fold:
the user name and password were listed in the connection string instead of inside the server
the db2 connect software installed on the report server was out of date (8 instead of 9)
the user group 'DB2Users' did not have any members
After correcting these problems, the report works!