You may notice a "#ERR" in the result set when you run an MDX query on a local ROLAP cube that contains a parent-child dimension in SQL Server 2000 Analysis Services (884395)
The information in this article applies to:
- Microsoft SQL Server 2000 Analysis Services
SYMPTOMSWhen you run a Multidimensional Expressions (MDX) query on a local Relational Online Analytical Processing (ROLAP) cube that contains one or more parent-child dimensions, you may notice that the query returns "#ERR" in the result set. Additionally, if you double-click "#ERR" in the result set, you receive the following error message:
Unable to display cell properties.
An error occurred during query execution - required entity missing ("")
An error occurred during attempt to get a cell value.
CAUSETo preserve the backward compatibility between Microsoft SQL Server OLAP Services 7.0 and Microsoft SQL Server 2000 Analysis
Services, the local cubes do not store the dimensions with a parent-child
structure. The dimensions with a parent-child structure are converted to regular
dimensions with one column for each level in the dimension. If you run an MDX query on the local ROLAP cube that references the parent-child dimensions, the hierarchy information of the dimension cannot be retrieved. Therefore, the MDX query does not run successfully, and "#ERR" is displayed in the result set.STATUS
This behavior is by design.WORKAROUNDTo work around this problem, you must run a simple MDX query that drills down to the leaf level of the parent-child dimension, and then run your problem query. For example, if the following query is your original problem query: SELECT NON EMPTY
HIERARCHIZE(Except({AddCalculatedMembers(Except({AddCalculatedMembers(DrillDownMember({DrillDownLevel({[Account].[All]})}, {[Account].[All].[Net Income]}))},
{[Account].[Account].&[2000], [Account].[Account].&[1000]}))},
{[Account].[Account].&[2000], [Account].[Account].&[1000]})) DIMENSION PROPERTIES
PARENT_UNIQUE_NAME ON COLUMNS FROM [Budget] WHERE ([Measures].[Amount]) You must run the following query by using the MDX Sample Application, and then run your problem query: SELECT measures.members on COLUMNS, Account.members on ROWS from budget Now, the problem MDX query runs successfully, and the result set of the query is displayed as expected. REFERENCESFor more information, see the following topics in SQL Server Books Online: Building Local CubesParent-Child DimensionsWrite Useful and Complex Queries With MDX
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
313269
FIX: When you run an MDX query on a write-enabled cube, the query returns #Err, or the query fails and you receive an "Unable to open cellset..." error message in SQL Server 2000 Analysis Services
315970 FIX: #ERR occurs when you browse a cube that is write-enabled and has a virtual dimension and an Oracle data source
810440 FIX: MDX queries return "#Err" as the result set when you enable "Visual Totals" on private parent-child dimension
Modification Type: | Major | Last Reviewed: | 8/27/2004 |
---|
Keywords: | kbProvider kbQuery kbtshoot kberrmsg kbprb KB884395 kbAudDeveloper |
---|
|