FIX: Incorrect result and exception occur when you use MDX query to do session cube grouping in SSAS

Applies to: SQL Server 2008 R2 Service Pack 2SQL Server 2012 Business IntelligenceSQL Server 2012 Analysis Services More

Symptoms


Assume that you have a user hierarchy with Relational Online Analytical Processing (ROLAP) partition in Microsoft SQL Server 2008 R2 Analysis Services (SSAS 2008 R2), SQL Server 2012 Analysis Services (SSAS 2012), or SQL Server 2014 Analysis Services (SSAS 2014). You can create session cube successfully. When you execute Multidimensional Expressions (MDX) query on the created session cube that involves the grouping level(s) directly or indirectly, you may encounter the following issues:
  • The query fails, and you receive the following exception from the session cube:
    Internal error: An unexpected error occurred (file 'mdpartitionrolap.cpp', line 948, function 'MDPartitionRolapMapper::AddRolapCondition').
    Execution complete
  • The query returns null measure data, and there is no any exception.

Resolution


The issue was first fixed in the following cumulative update of SQL Server.

Cumulative Update 3 for SQL Server 2012 SP2

Cumulative Update 4 for SQL Server 2014

Cumulative Update 12 for SQL Server 2012 SP1

Cumulative Update 13 for SQL Server 2008 R2 SP2

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.