SSAS A duplicate attribute key has been found when processing: Table: ‘dbo_DimDate’, Column: ‘QuarterNumberCalendar’

This post gives you a clue on how resolve the error like “: A duplicate attribute key has been found when processing: Table: ‘dbo_DimDate’, Column: ‘QuarterNumberCalendar'”.

When you hit this message and copy the entire message will be as below.

<Batch xmlns=”http://schemas.microsoft.com/analysisservices/2003/engine”&gt;

<Parallel>

<Process xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xmlns:ddl2=”http://schemas.microsoft.com/analysisservices/2003/engine/2&#8243; xmlns:ddl2_2=”http://schemas.microsoft.com/analysisservices/2003/engine/2/2&#8243; xmlns:ddl100_100=”http://schemas.microsoft.com/analysisservices/2008/engine/100/100&#8243; xmlns:ddl200=”http://schemas.microsoft.com/analysisservices/2010/engine/200&#8243; xmlns:ddl200_200=”http://schemas.microsoft.com/analysisservices/2010/engine/200/200&#8243; xmlns:ddl300=”http://schemas.microsoft.com/analysisservices/2011/engine/300&#8243; xmlns:ddl300_300=”http://schemas.microsoft.com/analysisservices/2011/engine/300/300&#8243; xmlns:ddl400=”http://schemas.microsoft.com/analysisservices/2012/engine/400&#8243; xmlns:ddl400_400=”http://schemas.microsoft.com/analysisservices/2012/engine/400/400&#8243; xmlns:ddl500=”http://schemas.microsoft.com/analysisservices/2013/engine/500&#8243; xmlns:ddl500_500=”http://schemas.microsoft.com/analysisservices/2013/engine/500/500″&gt;

SsasIncentive

Ssas Incentive

<Type>ProcessFull</Type>

<WriteBackTableCreation>UseExisting</WriteBackTableCreation>

</Process>

</Parallel>

</Batch>

Processing Dimension ‘Dim Date’ completed.

Start time: 1/4/2018 7:09:08 PM; End time: 1/4/2018 7:09:08 PM; Duration: 0:00:00

Processing Dimension Attribute ‘(All)’ completed.

Start time: 1/4/2018 7:09:08 PM; End time: 1/4/2018 7:09:08 PM; Duration: 0:00:00

Processing Dimension Attribute ‘Quarter Number Calendar’ completed. 1 rows have been read.

Start time: 1/4/2018 7:09:08 PM; End time: 1/4/2018 7:09:08 PM; Duration: 0:00:00

SQL queries

SELECT

DISTINCT

[dbo_DimDate].[QuarterNumberCalendar] AS [dbo_DimDateQuarterNumberCalendar0_0],[dbo_DimDate].[YearCalendar] AS [dbo_DimDateYearCalendar0_1]

FROM [dbo].[DimDate] AS [dbo_DimDate]

Processing Dimension Attribute ‘Year Calendar’ completed. 6 rows have been read.

Start time: 1/4/2018 7:09:08 PM; End time: 1/4/2018 7:09:08 PM; Duration: 0:00:00

SQL queries

SELECT

DISTINCT

[dbo_DimDate].[YearCalendar] AS [dbo_DimDateYearCalendar0_0]

FROM [dbo].[DimDate] AS [dbo_DimDate]

Errors and Warnings from Response

Internal error: The operation terminated unsuccessfully.

Server: The current operation was cancelled because another operation in the transaction failed.

    Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: ‘dbo_DimDate’, Column: ‘QuarterNumberCalendar’, Value: ‘3’. The attribute is ‘Quarter Number Calendar’.

You only need to look at the last line in this case.

You need to select the right KeyColumns, and NameColumn in Properties.

Advertisements

About chanmingman

Since March 2011 Microsoft Live Spaces migrated to Wordpress (http://www.pcworld.com/article/206455/Microsoft_Live_Spaces_Moves_to_WordPress_An_FAQ.html) till now, I have is over 1 million viewers. This blog is about more than 50% telling you how to resolve error messages, especial for Microsoft products. The blog also has a lot of guidance teaching you how to get stated certain Microsoft technologies. The blog also uses as a help to keep my memory. The blog is never meant to give people consulting services or silver bullet solutions. It is a contribution to the community. Thanks for your support over the years. Ming Man is Microsoft MVP since year 2006. He is a software development manager for a multinational company. With 25 years of experience in the IT field, he has developed system using Clipper, COBOL, VB5, VB6, VB.NET, Java and C #. He has been using Visual Studio (.NET) since the Beta back in year 2000. He and the team have developed many projects using .NET platform such as SCM, and HR based applications. He is familiar with the N-Tier design of business application and is also an expert with database experience in MS SQL, Oracle and AS 400.
This entry was posted in .Net, Cloud, Community and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.