Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Duplicate Attribute Key

Duplicate Attribute Key

Duplicate Attribute Key

SSAS 2008 Enterprise.

I have a dimension with IgnoreDuplicateKeyErrors set to ReportAndStop.

The dimension processes fine on it's own.  When I try to process the entire database, I repeatedly get a duplicate key error as follows:


A duplicate attribute key has been found when processing: Table: 'MyTableName', Column: 'LocationKey', Value: '-1'. The attribute is 'Location'.

Location is one level up from the bottom of the hierarchy.  It's set to false for MemberNamesUnique.  Even so, doing a query on the table yields only one distinct value for my NameColumn with the KeyColumn of -1.

Any ideas?

RE: Duplicate Attribute Key

In the treeview that is displayed while processing you can expand the node for your dimension and drill down to the SQL query that is executing. Once you have this you can run it and see what returns.

RE: Duplicate Attribute Key

Thanks, that helped me figure out the issue.  However, I'm thinking I need to redesign this.  Here is the scenario:

One measure group maps to the dimension key.  The other measure groups map to Location, which is one level up from the dimension key.  In order to provide the best usability experience, I related a bunch of other attributes to Location instead of the dimension key.  These others attributes are outside of the main navigation hierarchy.

So when the SQL statement is processed, it's doing something along the lines of:


SELECT DISTINCT LocationKey, LocationName, OtherMiscAttribute1, OtherMiscAttribute2, etc.

Many of these other attributes are simply abbreviations for names, so I'm thinking I will need to try to map these abbreviations to their respective name attributes instead of Location.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close