Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate Attribute Key 1

Status
Not open for further replies.

RiverGuy

Programmer
Jul 18, 2002
5,011
US
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?
 
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.
 
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:
Code:
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top