Quantcast
Channel: SQL Server Analysis Services forum
Viewing all 14337 articles
Browse latest View live

Error Saving Data Source

$
0
0

What might cause me to get the message "An error occurred while saving the schema file to disk" please?



SSAS Process Add, best practices. And why does it eat disk space when no rows to process?

$
0
0

Hi all

We have a molap cube, there are no updates or deletes - only new rows, easy. So I've been looking at the process Add option , which sounds ideal...

Currently we have a full (once a day) and a delta load (every hour)

Full = full

Incremental = default for Measure groups and update for dimensions

Full cube process takes ages and the incremental takes almost as long...(because apparently any new rows causes the partitions to be dropped and recreated)

So we thought Process Add would be ideal. I've tried a proof of concept; the source is a view where the date time is greater than the previously loaded date time (the typical design pattern for delta loading). Number of rows to process can be counted on 1 hand. The source query take milliseconds to run, so i'd expect it to process the new rows in seconds at most (xmla script generated from ssms). It takes minutes to run and i can see the file disk space eats up 20Gb of space for 5 partitions (virtually no rows).

Does anyone have any idea why the process add takes this long to run and uses so much space for doing virtually nothing? Are there any proper websites that detail how the Add works and how to do it properly? There doesn't seem to be much info about it on the www.

I thought this would be an ideal solution for a cube that doesn't do updates or deletes, and i also thought it would be really easy (at least in theory). In practice, it's behaving weird and not an acceptable solution as it stands.

Cheers Jon

------------------------------------------------------

Ah 1 more question: why does an incremental load (update + default) process all partitions in a measure group when most haven't changed?

[SSAS 2019] Several drill through for the same cell on TABULAR ?

$
0
0

Hi all,

We are newbie with Tabular cubes and we will switch to SSAS 2019 soon.

Do you know if it's possible to setup 2 differents drill through (eg, 1 drill through to sales tables and another to accounting tables) for the same pivot table cell ?

At first seen it was possible previously but only with SSAS 2012 => https://bideveloperextensions.github.io/features/TabularActionsEditor/

As of today there is no alternative with newer SSAS versions ?

thanks!
Tip

Errors in the OLAP storage engine: A duplicate attribute key has been found when processing:

$
0
0

Errors in the OLAP storage engine: A duplicate attribute key has been found when processing:

I checked the select  distinct query from the Dimension processing and the data is as in below table


TestIDCountryRegion
ABCCanadaRegion 1
ABCCanadaRegion 2

My Key column for the Dimension is TestID. so is the error occurring, as the distinct select has the same TestID for 2 rows? even though the Region is different?

Thanks




Best way to deploy SSAS & Set Cube datasource dynamically via SSIS Package

$
0
0

Hello,

we are trying to find the best way for deployment process of a SSAS cube, actually we've created an ssis project that fills the datawarehouse and at the end process the cube.

but the problem is that there's we can not seem to find a way to change the datasource for the ssas project so that it can points on the datawarehouse database in the other servers, at the moment of deploying ssis package from an environnement to an other.

Should we always open the solution in visual studio, change the datasource for the cube and after that deploy? because it doesn't make much sence.

MDX Leap year with parallelPeriod

$
0
0

Hello Everyone,

I get this MDX query by a predecessor and I think it's not working this year with february. I'm trying to get the sum of "MyNumbers" for the same period last year. 

I think that the problem why i get null this year is that there was last year 28 days in the month and 29 this year. What can i do to resolve this problem..

iif(iserror(SUM(YTD(PARALLELPERIOD([Date Facture].[Monthly].[year], 1, STRTOMEMBER("[Date Facture].[Mensuel].[Date].&[" +tail(existing(descendants( [Date Facture].[Monthly].CurrentMember,,leaves))).item(0).member_key  + "]"))),[Measures].[MyNumbers])),

null,

SUM(YTD(PARALLELPERIOD([Date Facture].[Mensuel].[year], 1, STRTOMEMBER("[Date Facture].[Monthly].[Date].&[" +tail(existing(descendants( [Date Facture].[Monthly].CurrentMember,,leaves))).item(0).member_key  + "]"))),[Measures].[MyNumbers]))

Thank you

Tabular 2019 compatibility level 1500: unable to process table or deploy?

$
0
0

I have found that using SQL Server SSAS 2019 models work fine up to compatibility level 1400.

However, after changing it to level 1500 I am no longer able to process tables locally or deploy.  

Once set to level 1500 and attempting to deploy or process I get the error:

Failed to save modifications to the server. Error returned: 'An unexpected exception occurred.

'.

SSAS Tabular Scalability - Number of Measures & Number of Fact Tables

$
0
0

We have two major issues with SSAS tabular at the moment and would appreciate any advice or assistance to resolve:

Tabular model:  40GB, 30 dimensions, a couple with a few million rows, 15 fact tables +-30 million rows.

Server: Azure VM Machine - Standard DS14-8_v2 (8 CPU E5-2673 v3 @ 2.40GHz , 112 GB memory)

Number of Measures

Increasing the number of measures in the BIM file slows down development in Visual Studio when working with the BIM file and Power BI users find it impossible to add custom measures for their reports with long waits on edits of custom measures. This appears related to the sequence point algorithm on the SSAS service which takes longer and longer as more measures are added to the model.

Number of Fact Tables

As we have added additional fact tables, we have noticed a slow down in query response times. We created two identical tabular models, one fully populated and one with only the sales fact populated. We ran the same query over sales fact on both models, this generated the same query plan and row counts, but the CPU timing on the full model was higher on each step of the query plan and overall a significant difference in query response time, we assume that this is related to relationship management done by the SSAS service on the query.

We have done a lot of work on the DAX and will be upgrading the hardware and software (SQL 2017), but these two issues appear to be serious blockers to growing a consolidated solution. We are now considering splitting the model into multiple tabular models, to overcome these two issues, which will reduce measures and facts in a single tabular model and bring performance back up, but this will create complexity with reporting across the tabular models.  Has anyone experienced these issues, any solutions, suggestions or advice other than splitting the tabular model?


SSAS Multidimensional Error when exploring data in SSDT 2017

$
0
0

When I'm working in SSAS multidimensional mode I get the error below when I try to Explore Datain a table. This makes development impossible since I cannot see any of the data in the model.  I've tried reinstalling SSDT and updating .NET but nothing seems to work. I did not have any trouble designing models in Tabular mode. 

Any idea how to fix this?

Visual studio SSDT 2017 v15.9.18

.Net Framework 4.803752

===================================

Could not load file or assembly 'Microsoft.VisualStudio.DpiAwareness, Version=6.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (Microsoft Visual Studio)

------------------------------
Program Location:

   at Microsoft.AnalysisServices.PMAUtility.Utilities.CreatePMAContext()
   at Microsoft.AnalysisServices.Design.DataSourceDesignerView.DataExplorationToolWindowFactory.CreateNewToolWindow(IDesignerToolWindowService vsShell, Guid guid, String title, IDesignerToolWindow& toolWindow, ExploreDataUserControl& dataExplorationControl)
   at Microsoft.AnalysisServices.Design.DataSourceDesignerView.DataExplorationToolWindowFactory.CreateToolWindow(IServiceProvider serviceProvider, String title, DataTable table)
   at Microsoft.AnalysisServices.Design.DataSourceDesignerView.CreateDataExplorationToolWindow(DataTable table)
   at Microsoft.AnalysisServices.Design.DataSourceDesignerView.OnBrowseData(MenuCommand menuCommandSender, CommandHandlingArgs args)
   at Microsoft.DataWarehouse.Design.CommandHandlingInfoMap.HandleCommand(MenuCommand menuCommand)
   at Microsoft.AnalysisServices.Design.DataSourceDesignerView.Microsoft.DataWarehouse.Interfaces.ICommandTarget.InvokeCommand(MenuCommand menuCommand)
   at Microsoft.DataWarehouse.Design.EditorWindow.Microsoft.DataWarehouse.Interfaces.ICommandTarget.InvokeCommand(MenuCommand menuCommand)
   at Microsoft.DataWarehouse.VsIntegration.Designer.Host.CommandTargetMenuService.InvokeCommand(CommandID commandID)

SSAS Cube deployment issue with DB2 source connection

$
0
0

I am new to SSAS and have built a cube in Visual Studio 17.  The source is a DB2 database, which I can connect to in Visual Studio and import tables.  When I deploy the cube I get the below errors.  I have extensively researched DB2 connection, the provider not being registered, does SQL Server need some library or driver for DB2?  I have had no luck finding a resolution.  PLEASE provide any help you can, I am stuck.

Error        Errors in the OLAP storage engine: An error occurred while the 'VLESTY' attribute of the 'Product' dimension from the 'RandaOrdersCube' database was being processed.           0    
Error        Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'S21ec54v', Name of 'ABS400F'.            0   
Error        The following system error occurred:  Class not registered            0    
Error        Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Product', Name of 'Product' was being processed.            0    
Error        Errors in the back-end database access module. The provider 'DB2OLEDB.1' is not registered.            0    
Error        Server: The current operation was cancelled because another operation in the transaction failed.            0    
Error        Internal error: The operation terminated unsuccessfully.

Issue with Mapping in MDX

$
0
0

Hello All,

   When am trying to assign a value to a member in one dimension with value assigned to another member from another dimension as below.

[x].[x].[1]=[y].[y].[10]

am getting the correct value. however when am trying to assign sum of multiple members as below getting infinite recursion error.

[x].[x].[1]=[y].[y].[10]+[y].[y].[9]

Can anyone help me resolve this.

Regards,

Bharath

Question regarding SQL Server analysis

$
0
0

If i wish to create a calculated member that intersects all measures ,where i should put it and why ?

converting string date to yyyy-mm-dd

$
0
0

Hi All,

I am totally new to these types and queries but forced to figure stuff out on the fly.

I wrote the below query the format of the date is in T00:00:00 and need to somehow covert it.

SELECT 				
		  ( 
				 {                                                       
[KPI_DEFINITION].[KPI NAME].&[CALLS HANDLED],
[KPI_DEFINITION].[KPI NAME].&[TRANSFER RATE]
				 } 
		  ) ON 0, 
		 NON EMPTY 
		 ( 
 [CALENDAR].[Year].&[2018-01-01T00:00:00],
	[CALENDAR].[DATE].Children,
			-- SITE
			HIERARCHIZE( 
			  { 
[LOCATIONS].[Call Centre Name].&[Brampton],
[LOCATIONS].[Call Centre Name].&[Kitchener],
[LOCATIONS].[Call Centre Name].&[Montreal],
[LOCATIONS].[Call Centre Name].&[Ottawa],
[LOCATIONS].[Call Centre Name].&[Fido]
			  } 
			), 

({
[HR_AGENT].[Staffgroup Code].&[BRCIOS],
[HR_AGENT].[Staffgroup Code].&[BRCIS1],
[HR_AGENT].[Staffgroup Code].&[BRCISE],
[HR_AGENT].[Staffgroup Code].&[BRCTPO],
[HR_AGENT].[Staffgroup Code].&[KTCISE],
[HR_AGENT].[Staffgroup Code].&[KTCSAE],
[HR_AGENT].[Staffgroup Code].&[MTCISB],
[HR_AGENT].[Staffgroup Code].&[OTCISE],
[HR_AGENT].[Staffgroup Code].&[FD]
			  } 
	),		-- 
            [HR_AGENT].[Employee Id].children
		  ) ON 1 
		FROM [INTEGRATED_OPS] 

A sample of the resulting table is below

How can I modify to get a result the the date of Tuesday, January 02 2018 is shown as 2018-01-02?

Thanks in advance for any assistance you can provide.

How to see the existing hierarchies in SSAS Tabular Model

$
0
0

Hello,

I can see there are existing hierarchies while browse the cube in SQL Server, where as i am not able to see the same hierarchies in .bml file in visual studio? Can someone tell me how to add back the hierarchies from the existing cube or they are hidden some where? 

Here is the image of Customer Dimension with Address, Common, Dates hierarchy from SQL server

Here is the image from Visual studio 

Thanks,

Shyam Maddi.


Thanks, Shyam.

Partitioned Fact Table Causing Double Results??

$
0
0

So, we have a tabular model which we want to partition in order to speed up processing.

What we're now seeing is somewhat odd. There are three key measures we're looking at: Passenger Revenue, Passenger Legs, and Average Fare. Between our two environments - Stage and Production - these numbers should be the same since they both draw on the same source data. Only difference is that Stage is our "pre-prod" environment. This instance of our tabular model does have the partitioning in place. We are partitioning the FactPassengerSale table.

Essentially what we are seeing are double counts between the two environments. Below, is a screenshot of the data being returned from production:

And this is from Stage:

To make sure there was nothing on the data side wrong, done a query of all tables and row counts between the two are equal, so we SHOULD be seeing the same fare and revenue information. The only thing I can think of is that the partition on the fact table is causing this.

I've worked with partitioning in a multidimensional environment before, and have never run into this. Again, the only difference between the two models is one is partitioned and the other isn't. I don't see how that would cause a problem, but I could be wrong.

Any insight would be appreciated! 


A. M. Robinson


SSAS POWER BI SERVICE- Export Limitation

$
0
0
Hi Experts , 

This Question is related to Power BI (POWER BI SERVICE-PREMIUM) connect "Live Connection" with SSAS(MultiDimension).
We are facing issue Exporting more data in .xlxs file.
if we do not Import data in Power BI( Since we use Live Connection),Then Limit of data that can be exported is 16MB (Mentioned in below Link)

This comes out as major concern when Client try to Export data for more than one month or Quarter or Semester.
Can we Increase the Export Size ?

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-export-data

Connect from IIS (BASIC Authentication) to SSAS failed

$
0
0

Hello

I am trying to connect to SSAS from IIS located in another domain

I defined one connection using MSMDPUMP without success

the SQL profiler says that the (failed) connection is "anonymous" although my connection in IIS is defined as "basic" with user name and passport

I am following the Microsoft docs about "http connection"

Any trick or idea?

Issue Processing tabular model through SQL server agent Jobs

$
0
0

Hi,

We have oracle DB as datasource. We built tabular model creating oracle as datasource and published to SQL server tabular server. we trying to  process the database(Process mode is full) manually the process was successfull. To automate this steps we created the Job & scheduled to process the data in tabular database

When running the job we get below error message.

Message
Executed as user: USPHC\996889. <return xmlns="urn:schemas-microsoft-com:xml-analysis"><root xmlns="urn:schemas-microsoft-com:xml-analysis:empty"><Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception"><Warning WarningCode="1092091904" Description="Note. Analysis Server has persisted any security information specified as part of the Connection string portion of the Datsource object definition." Source="Microsoft SQL Server 2017 Analysis Services Managed Code Module" HelpFile="" /></Messages></root></return>.  The step failed.

Thanks in Advance.

Raghav

SSAS Tabular performance issue with Powerbi

$
0
0

Hello community,

My company has just stopped supporting our Cube and we are moving to tabular/Powerbi. I have picked up a relatively small tabular model and i need to Port some MDX queries over to Dax in the tabular model. As you may imagine we are hitting some performance issues around our tabular/measures. unfortunately, due to tight security we are not allowed to download anything not microsoft for troubleshooting.

The tabular model has a basic Star Schema design with a Fact table with 17 million rows. While building a couple of dax queries i have noticed that they are running pretty slowly. Basic Sums are working fine but anything with Sumx or Summerize kills the process and we get a "Allocation Failure, Memory error". These Sumx/Summerize queries are required as we need Weighted Averages on WIP which requires plenty of calculations.

Specs:

The SSAS server sits on a VM & is running with 8 Cores and 24GB of Ram with the default Tabular model configuration settings. I run powerbi using "Connect to Live" and most of our measures run in a matrix using a hierarchy of dimensions.  I watch the resource monitor on the VM box when measures fail due to out of memory issues and the resources are hardly being used.

Since the resource monitor is not actually showing any resource constraints during the memory error in powerbi does this mean i have set something up incorrectly? 

Any help would be greatly Appreciated. 

Thanks for your time.

user is in reader role but all he sees is empty databases folder

$
0
0

Hi. We have a couple of ssas 14.0.239.1 tabular models as shown in figure 1. I added a role to tabular 3 called user and added my user to the role. When he uses ssms from a remote to reach the tabular models all he sees is an empty "databases" folder. Why is that?  I have no problem seeing/browsing the tabular models from both the server its on and a server with ssms that is remote to that server.  the service is running.  the last image had to be anonymized but his domain and userid are there and they were checked for validity.

Viewing all 14337 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>