SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Flattened hierarchy with NULL in SSAS gives error 'A duplicate attribute key has been found when...


Flattened hierarchy with NULL in SSAS gives error 'A duplicate attribute key has been found when processing'

Author
Message
posy_74
posy_74
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 37
Hi All,

I've got a flattened employee hierarchy like this (DIM_EMP_HIERARCHY):

Hierarchy Key | AlternateKey | Node 0 | Node 1 | Node 2....Node15
1 | 1 | BigBoss | Null | Null
2 | 3 | BigBoss | Manager| Pleb
3 | 1031 | BigBoss | Manager | Another Pleb
4 | 2674 | BigBoss | Manager | NULL

When I process the Employee Dimension, I get the following error:
Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dbo_DIM_EMP_HIERARCHY', Column: 'Node2', Value: ''. The attribute is 'Node2'.

I know that the value '' is given as the substitute for the nulls, and I have read the articles below, which talk about how it is null, and the suggestion is 'just avoid null'. However, I need to have a SCD, so cannot do a self referencing table.

I have also tried setting the errors parameter to not showing. However, this makes the hierarchy incomplete.

http://support.microsoft.com/kb/2002757
http://social.technet.microsoft.com/wiki/contents/articles/19726.analysis-services-errors-in-the-olap-storage-engine-a-duplicate-attribute-key-has-been-found-when-processing.aspx

Can anyone please shed any light on how I can get my dimension processing?

Thanks,
Rose
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search