FIX: "The MDX function failed because the coordinate for the 'AttributeName' attribute contains a set." message when you run an MDX query in SQL Server 2012 or in SQL Server 2008 R2

Article translations Article translations
Article ID: 2823086 - View products that this article applies to.
Microsoft distributes Microsoft SQL Server 2012 Service Pack 1 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 Service Pack 1 fix release.
Expand all | Collapse all

On This Page

Symptoms

Assume that you apply Service Pack 1 (SP1) for Microsoft SQL Server 2012 on an instance of SQL Server 2012, or you have Microsoft SQL Server 2008 R2 on your computer. When you try to run a Multidimensional Expressions (MDX) query, the query fails and you receive an error message that resembles the following:

The MDX function failed because the coordinate for the 'AttributeName' attribute contains a set.

Resolution

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

Cumulative Update 11 for SQL Server 2012

Cumulative Update 9 for SQL Server 2008 R2 SP2

About cumulative updates for SQL Server

Collapse this imageExpand this image
assets folding start collapsed
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Collapse this imageExpand this image
assets folding end collapsed

Cumulative Update 3 for SQL Server 2012 SP1

The fix for this issue was first released in Cumulative Update 3. For more information about how to obtain this cumulative update package for SQL Server 2012 SP1, click the following article number to view the article in the Microsoft Knowledge Base:
2812412 Cumulative update package 3 for SQL Server 2012 Service Pack 1
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 SP1 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2772858 The SQL Server 2012 builds that were released after SQL Server 2012 Service Pack 1 was released

Status

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

More information

To reproduce this issue, run the following query:
with member measures.test as 1
 
SELECT  
  {
    measures.test,
   [Measures].[Internet Sales Amount]
  }
   ON COLUMNS
                                                       
,NON EMPTY 
  [Product].[Model Name].[Model Name].members*
  [Product].[size].[size].members
 
    ON ROWS
FROM 
(
  SELECT 
    {[Product].[Product Line].&[M]} ON COLUMNS
  FROM [Adventure Works]
)
WHERE   
  (       
   [Product].[Product Line].[All Products]
  )
Based on the previously mentioned query, the issue is more likely to occur when the following conditions are true:
  • The query runs in cold cache, or runs after the data cache is clear after a ClearCache XMLA command.
  • The MDX query selects more than one measure, and at least one of the measures is a base measure from a measure group. In the previously mentioned query, [Measures].[Internet Sales Amount] comes from a measure group.
  • The query has a subselect of a single member.
  • The ALL slice is above the granularity of an attribute in the axis. For example, the All slice is selected for the [Product].[Product Line] attribute when there is a [Product].[Model Name] attribute in the axis.
  • The axis needs to cross join some other attributes from the dimension. In the previously mentioned query, there is more than one attribute in the row axis.

References

For more information about the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base:
935897 An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems
For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:
822499 Naming schema for Microsoft SQL Server software update packages
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 2823086 - Last Review: December 16, 2013 - Revision: 4.0
Applies to
  • Microsoft SQL Server 2012 Business Intelligence
  • Microsoft SQL Server 2012 Enterprise
  • Microsoft SQL Server 2012 Standard
  • Microsoft SQL Server 2012 Developer
  • Microsoft SQL Server 2008 R2 Datacenter
  • Microsoft SQL Server 2008 R2 Developer
  • Microsoft SQL Server 2008 R2 Enterprise
  • Microsoft SQL Server 2008 R2 Standard
  • Microsoft SQL Server 2008 R2 Web
  • Microsoft SQL Server 2008 R2 Workgroup
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2823086

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com