Duplicate attribute key

Hi mates,
    I have a postcode dimension. PostCodeKey is primary key. There are altogether 50 columns in this dimension. One column(Domestic) has NULLs which is not PK. When I process the cube, I am getting error Duplicate attribute key found.
As it is not PK, why is it reporting duplicate key?
I can add PostCodeKey in the Domestic column's key columns property. If so I need to add to all columns where I expect NULLs.
If I remove Domestic column in the dimension, cube processing is succeeded.
But, in a dimension, any column can be NULL other than the PK column.
How to fix this error?
Thanks

the are a few reasons why you may see the duplicate keys error.
For example if you have a zero and Nulls in the same column then this would be seen by SSAS as a duplicate.
It is best to treat NULLs in columns as part of your ETL.
here is a good article on duplicate keys
http://ms-olap.blogspot.co.uk/2009/11/duplicate-attribute-key-has-been-found.html

Similar Messages

  • Duplicate attribute key found when creating a dimension

    Good Afternoon,
    I created a cube with dimesnions and all is working fine. I created three dimension ZONE,BLOCK and STREET and these are reltated to the FACT table and all is well. But i was thinking since these 3 dimensions are related and coming from the same table, why
    not just create one dimension with ZONE as the primary key and the heirarchy as zone>block>streetname. In the DSV i created a named query.
    SELECT DISTINCT ZONE, BLOCK, STREET
    FROM dbo.MYTABLE
    group by zone,block,street
    order by zone,block,street
    Please see the sample dataset as well, where when i process the DIMENSION fails with an error that the "Duplicate attribute key was found, column name:Zone, value:1). I know zone and also the other two columns when processed are repeated more than once
    and hence this, is there a way to get what i want.
    ZONE BLOCK STREET
    1 0 Chesapeake
    1 0 East Market
    1 0 East Maryland
    1 0 East Washington
    1 0 North Capital
    1 0 North Delaware
    1 0 North Illinois
    1 0 North Meridian
    1 0 North Penn
    1 0 South Delaware
    1 0 South Illinois
    1 0 South Meridian
    1 0 South Penn
    1 0 Virginia
    1 0 West Georgia
    1 0 West Jackson
    1 0 West Market
    1 0 West Maryland
    1 0 West New York
    1 0 West Washington
    1 100 East Washington
    1 100 East Market
    1 100 East Maryland
    1 100 East New York
    1 100 East Ohio
    1 100 East Washington
    1 100 North Alabama
    1 100 North Capitol
    Thanks
    SV

    Thanks Richard and SS. This is what i did.
    1) In the DSV i created a new named query, the same one i used.
    2) Set Primary Key on Street.
    3) Created a dimension STG_ZBS_DIM and while creating the heirarchy , i draged and dropped the fileds in the following order (zone>block>street).
    4) Tired to process , but getting the same error, except this time at the street level.
    What else i did was changed the primary key back to Zone, went into the attribute relations and set the relation from Zone to Block and then Block to Street, saved and processed and this time i got the error at the block level :-(
    Thanks
    SV

  • A duplicate attribute key has been found when processing

    Hi
    When I process one of my dimensions it fails and I get the following error:
    Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'Customers', Column: 'DisplayName', Value: 'Stephen Grant'. The attribute is 'Display Name'.
    I don't know if this is significant, but the attribute to which it is making reference was added through BIDS 2008 (the cube was originally created with BIDS 2005). 
    There are no duplicates of 'Stephen Grant' in the DisplayName column. Not that it should matter if there were as this attribute has a cardinality of Many, with an rigid attribute relationship directly to the dimension's key attribute. The Key column for the Display Name attribute simply refers back to the same (DisplayName) column in the table.
    If I delete this record, or even just update the DisplayName field from 'Stephen Grant' to something else, the dimension processes just fine. I can't work out what it is about this record that is stopping the dimension from being able to process.
    Can anyone help me figure out what's going on?
    Julia.
    P.S. I am using SSAS 2008 on Windows Server 2008

    Hello there,
    Does anybody has the complete resolution for duplicate entries data. I am showing the data below .
    RegionName
    BranchName
    LoanOfficerFullName
    PRIME - TEAM NORTHEASTERN
    CALIFORNIA
    ALONA  HAYES
    PRIME - TEAM WESTERN
    RENO-DAMONTE RANCH
    VINCENT LOTITO
    PRIME - TEAM WARTON
    NEWARK (Chicago)
    CHRISTOPHER CLIFTON
    PRIME - TEAM WARTON
    GRAND HAVEN (West Michigan)
    SEAN  FOLEY
    PRIME - TEAM SALMANS
    LAWTON (Amarillo)
    THOMAS  STEARNS
    PRIME - TEAM BARTON
    CALIFORNIA
    ALONA  HAYES
    PRIME - TEAM ROBINSON
    LAS VEGAS
    ANGELA DEATON
    PRIME - TEAM ROBINSON
    LAS VEGAS
    HERMAN  VANDER VELDT
    PRIME - TEAM ROBINSON
    LAS VEGAS
    DAWN ROBINSON
    PRIME - TEAM ROBINSON
    LAS VEGAS
    MICHAEL  BIRK
     Here i have the Hierachies in order LoanOfficerFullName-->BranchName-->RegionName. Loan Officer is the lowest level. I had created another column and make that unique entries so that I could make the unique column as the Key and the hierachies i have linked with the key column value. The issue
    is that i am getting the expected result in OLAP  from data side. But the data is not getting aggregated like Team Barton is coming twice though for the Dimension I make IsAggregatable property to True. If anybody can help me I will aprecciate. If any other clarification need I can provide.

  • Error when build cube - A duplicate attribute key has been found when processing...

    Hi all,
    I got an error “Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table…” when built new cube. It looks strange in my case. I created a small example to re-produce this error as below:
    I create a data source table as below
    AgencyName(varchar(50))-----MediaSpend(float)
    OE------------------------------------100
    Œ-------------------------------------200
    Then I create a cube base on this data source with a dimension AgencyName and 1 Measure MediaSpend.
    The error happened again. This look link a special case when ‘OE’ and ‘Œ’ existed in a dimension.
    Do you have any ideas on this?
    Thanks,

    Hi khoana,
    Here is a similar thread about this topic for your reference, please see:
    A duplicate attribute key has been found when processing:
    http://social.technet.microsoft.com/Forums/en-US/sqlanalysisservices/thread/7c72639b-a050-4243-9f1d-4da906e981d5/
    Regards,
    Elvis Long
    TechNet Community Support

  • Errors in the OLAP storage engine: A duplicate attribute key has been found when processing

    Hi dear MSDN Community,
    I am facing a problem while processing a cube with a customer hierarchy as follows:
    Global Account --> Main Customer --> Master Customer --> Customer
    The data comes from a flatted parent child table, that is, I create an extra column for every level of the hierarchy in the customer view. If a level is empty, then the value is filled with the previous value. Then I can use the property:
    HideMemberIf = OnlyChildWithParentName for the intermediate levels (Main and Master Customer)
    HideMemberIf = ParentName For the leafs (Customer)
    HideMemberIf = never for the root (Global Account)
    Consider this example:
    Then, for the root level I am using as the key the fields in yellow in order to avoid duplicates. However, I am getting the error message "Errors in the OLAP storage engine: A duplicate attribute key has been found when processing" while processing.
    I analyzed the query that SSAS issues to the server (select distinct ....) and I think it should work but it is still failing.
    I had similar problems with the intermediate levels but I was able to solve it using a similar procedure.
    Any help will be appreciated.
    Kind Regards.

    When are you having this error? While processing the dimension or during cube processing?
    http://blog.oraylis.de/2013/08/a-duplicate-attribute-key-has-been-found-during-processing-revisited/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Country-State-City hierarchy is driving me crazy ( duplicate attribute key errors)

    hi guys:
      I've a dimDesitination dimension and inside this dim , I have 4 attributes, dimDest_ID, country, state and city,
    my goal is pretty simple, create a hierarchy country-state-city .
    I've made sure there are no NULLs in each column, also state and city attribute, I've created composite key 
    for example, for state attribute , the key column is (country , state)
    for city attribute, the key column is (country, state , city)
    when the source dim table contains small number of data, every is fine and process full did succeed.
    However, when the raw dim table gets bigger( more data comes in), the process full starts to give me error msg
    says duplicate attribute key errors....   this is painful as I did check the raw table but no duplicate key found ever
    any comments?
    thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Cat_ca,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • French character is causing duplicate attribute key errors, why and how to overcome?

    hi there:
      I have a retailerproductname called  'Meilleurs vœux' , this character 'œ' is causing headache  as  it's causing the classic duplicate attribute key errors.  When I replaced it with 'e', error goes away... 
    The thing is that I do not want to correct  datawarehouse everyday for this type of work... plus there might be other non-english characters that may pop up depends on what consumers  bought. 
    Is there anyway other than manual intervention? 
    thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    yes, try use nvarchar instead of varchar.
    Using varchar Spree-Neiße <> Spree-Neisse. Using nvarchar Spree-Neiße = Spree-Neisse.
    And one more specifying quiestion about your data source. Imagine you have two retailproductname, such as
    Spree-Neiße and Spree-Neisse. In your case is it the same product and you should leave only one record? 

  • Duplicate attribute key in date Dimension

    Hi,
    I have created a date dimension using this code
    http://www.codeproject.com/Articles/647950/Create-and-Populate-Date-Dimension-for-Data-Wareho
    It contains one attribute 'Month'
    I have created one fact table which contains the following dates
    StartDate
    EndDate
    CreationDate
    CompletionDate
    AssignedDate
    ReceivedDate
    ActualStartDate
    AcutualEndDate
    DecisionDate
    I have created a relationship with date dimension created by using above code. Relationship of above attributes have been created with DimDate.Date attribute. I have not created Calendar Hierarchy yet. 
    When I am processing the cube I am getting the following error
    Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dim_Date', Column: 'Month', Value: '10'. The attribute is 'Month'.
    In date dimension have data from 1990 to 2050. so Month is being repeated for each year. I am not sure Why am I getting this error.
    Any Help much appreciated.
    MH

    Hi Mustafah,
    For the error "Errors in the OLAP storage engine: A duplicate attribute key has been found when rocessing: Table: <tablename>, Column: <columnname>. Value: <value>. The attribute is <attributename>", it  can occur in multiple
    situations. In many cases, the recommended solution is to change the KeyColumn by setting it to a unique attribute, or by creating a composite key that results in a unique value when multiple attributes are evaluated as a unit. Here are some document which
    describe this error and the solution of it.
    References:
    Analysis Services: Errors in the OLAP storage engine:
    A duplicate attribute key has been found when processing
    You get “A duplicate attribute key has been found when processing ..” error message when processing a dimension
    A duplicate attribute key has been found when processing
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • How to delete duplicate attribute in on premise server for office 365 dir sync tool

    Hi,
    Please anyone help to how to remove duplicate attribute in on premise server for office 365 dir sync tool .
    While running the dirsync tool iam getting the below error : 
    "Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [ProxyAddresses smtp:[email protected],SMTP:[email protected];].
     Correct or remove the duplicate values in your local directory.  Please refer to http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute value"
    Still i am troubleshooting to reslove this problem . I have run the ID Fix tool there i could see some 10 duplicate errors . Next what should i do , please anyone help me to find it
    Thanks.....

    Hi,
    Please anyone help to how to remove duplicate attribute in on premise server for office 365 dir sync tool .
    While running the dirsync tool iam getting the below error : 
    "Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [ProxyAddresses smtp:[email protected],SMTP:[email protected];].
     Correct or remove the duplicate values in your local directory.  Please refer to http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute value"
    Still i am troubleshooting to reslove this problem . I have run the ID Fix tool there i could see some 10 duplicate errors . Next what should i do , please anyone help me to find it
    Thanks.....

  • XML Parsing Error: duplicate attribute in Firefox

    Hello,
    I recently switched from a JSF 1.2 RI nightly build from March to the 1.2_01 SNAPSHOT from 5/5/06 available in the maven repository:
    https://maven-repository.dev.java.net/repository/javax.faces/jars/
    Upon doing so, Firefox stopped rendering certain pages complaining of dupicate attributes (IE doesn't seem to care). The duplicate attributes are onclick attributes of <h:commandButton/> generated <input/> tags.
    The background is that we have a number of <h:commandButton> tags that once submitted forms as part of JSF actions, but were modified to call JavaScript (non-JSF integrated) instead (type="button" onclick="someJavaScriptFunc()"). As this is the case, the problem has been easily avoided by changing the <h:commandButton/> tags to regular html <input/> tags.
    My question is whether the rendering of two onclick attributes per <h:commandButton type="button"/> tags is a bug that should be reported, or a result of user error.
    I am also using Facelets 1.1.4 in JBoss AS 4.0.3sp1.
    Thanks for the help,
    Jonn

    No, my expectations are not unmet. Being new to JSF 1.2 RI, I thought it best to ask about possible user error before reporting a bug.
    Not surprised that the same error appears in app server 9 as it looks like it contains a JSF snapshot from a few days before the one I'm using.
    I just tested the nightly from 6-2-2006 and the duplicate attribute problem appears fixed, so no need to open an issue. tromanow, you might want to grab these jars from the jsf java.net site:
    https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=1703&expandFolder=1703&folderID=5420
    ...as long as you're not using Seam, as Seam variable resolving appears to be broken using the 6-2 nightly.

  • Duplicate Semantic Key in Write Optimized DSO

    Gurus
    Duplicate semantic keys have a unique index KEY in the key fields of the DSO when WRITE OPTIMIZED DSO is used. (Of course this is assuming the Do not check uniqueness of data indicator is not checked..)
    See help https://help.sap.com/saphelp_crm60/helpdata/en/a6/1205406640c442e10000000a1550b0/frameset.htm
    This means that the DSO can contain duplicate records.
    My question is: What happens to these duplicates when a request level delta update is done to a Standard DSO or Infocube?
    Do duplicates end up in the error stack? Are they simply aggregated in further loads? - because this would be a problem for reporting (double-counting).
    thanks
    tony

    Hi Tony,
    It will aggregate the data in some undesired way.
    Read on...
    https://help.sap.com/saphelp_crm60/helpdata/en/b6/de1c42128a5733e10000000a155106/frameset.htm
    If you want to use write-optimized DataStore objects in BEx queries, we recommend that they have a semantic key and that you run a check to ensure that the data is unique. In this case, the write-optimized DataStore object behaves like a standard DataStore object. If the DataStore object does not have these properties, unexpected results may be produced when the data is aggregated in the query.
    Hope it helps...
    Regards,
    Ashish

  • Error for the fact table while processing the cube - attribute key cannot be found when processing

    Please help as I am new to SSAS and this is urgent requirement. This is a MOLAP cube and below is the error that I am receiving when processing the cube. The cube is set to Prrocess Full. Several similar errors are popped up for various dimensions.
    "Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'Fact_Table', Column: 'ID', Value: '1'. The attribute is 'Id'. Errors in the OLAP storage engine: The attribute key was converted to an unknown member because
    the attribute key was not found. Attribute Id of Dimension: 17 - Ves - PoC Cont from Database: DB, Cube: IPNCube, Measure Group: iSrvy, Partition: Partition1, Record: 1."
    Thanks in advance.

    Thanks for the recommendations David.
    It will be really great if you can clear some of my doubts:
    To my information, all the dimensions need to be processed first and then the fact table will be processed.
    So if the ID's are not present in the dimension tables, then it should not be present in the Fact table either.
    Here we found null values in the dimension table and the ID's were present in the Fact table. What might be the reasons causing such situation?
    Also how frequently the cube needs to be processed? Currently the ETL which processes the cube, is scheduled in a SQL Job Agent on hourly basis everyday. 
    Is there any possibilty that the cube might be under processing state and the SQL job for the next run getting executed trying to access and process the cube while it was still processing?

  • Attribute key not found when there is no data in Fact table

    Hi All,
    I have a Dimension and Fact table,Dimension has data but Fact table is empty. The Dimension is MOLAP & Measure group is ROLAP. the relation is built on Key column and named column is some other attribute.
    When I execute MDX "select { [Measures].[Avg Sales] -- Average type measure} on columns from my_Cube ", this returns a valule with #Error. error message in cell is "The attribute key cannot be found when processing:
    Table: 'FACT, Column: 'ID', Value: '0'. The attribute is 'Name' "
    I have processed the Dimension with Full and then Cube is processed with Full. but still same error. Please suggest .
    Ram MSBI Developer

    Hi Ram ,
    Since you mentioned "Value: '0'. The attribute is 'Name' ""
    I would recommend to have a look at the Key/Name Column's property regarding to the NullProcessing .
    Regards, David .

  • Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: performance_fact

    Hi
    We are using SSAS 2008 r2 and have a cube on our data warehouse, this has been running fine for quite a while now.
    However it failed yesterday with the error message:
    Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 
    'Performance_Fact', Column: 'accountexternalId', Value: '9474'. The attribute is 'External Id'."
    Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation." 
    An error occurred while processing the '2011' partition of the 'Fact' measure group for the 'DB' cube from the DB database.
    Please can someone help me to resolve the error, I don't understand what it means.
    Thanks

    Hello,
    The error means that you have a key in the fact data which don't exist in the related dimension. Ensure that the dimension is also processed so that it contains all used keys.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Attribute key cannot be found : Data present but not processed

    Hi there,
    I know this question has been ask several time and I went through a lot of proposed solution but none were successful in my case. My cube processed successfully for month but now I have the following error :
    Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'EventMember', Column: 'Id', Value: '22560966'. The attribute is 'Id'.
    To explain my case here what I've got.
    A dimension [Member Unique] where there is a bigint Id and some attributes. The only defined attribute in the dimension is Id.
    When I process fully this dimension the query issued by SSAS to SQL (using the profiler) is the following :
    SELECT
    DISTINCT
    [dbo_Member].[Id] AS [dbo_MemberId0_0]
    FROM [dbo].[Member] AS [dbo_Member]
    I verified that the Id 22560966 is present in the table and in the resulting set and that is the case.
    Then I have the measure group EventMember based on a named query doing the following :
    SELECT Id
    FROM dbo.Member AS m
    WHERE EXISTS
    SELECT 1 AS Expr1
    FROM dbo.Event AS g INNER JOIN
    dbo.MemberHistory AS h ON h.Id = g.MemberId INNER JOIN
    dbo.MemberVersion AS v ON v.HistoryId = h.Id
    WHERE (v.AntvoiceMemberId = m.Id)
    This query returns also the row 22560966.
    When I process fully the measure group EventMember the query issued by SSAS is :
    SELECT [EventMember].[EventMember0_0] AS [EventMember0_0],[EventMember].[EventMemberId0_1] AS [EventMemberId0_1]
    FROM
    SELECT 1 AS [EventMember0_0],[Id] AS [EventMemberId0_1]
    FROM
    SELECT Id
    FROM dbo.Member AS m
    WHERE EXISTS
    SELECT 1 AS Expr1
    FROM dbo.Event AS g INNER JOIN
    dbo.MemberHistory AS h ON h.Id = g.MemberId INNER JOIN
    dbo.MemberVersion AS v ON v.HistoryId = h.Id
    WHERE (v.AntvoiceMemberId = m.Id)
    AS [EventMember]
    AS [EventMember]
    And it crashes during the process giving me the above error.
    I did try to allow missing key attribute error in the process option, and it ran successfully. It allowed me to issue an MDX statement on my cube to check if the dimension member was present. And it was not the case. Hence the error I think. The MDX statement
    was :
    SELECT [Member Unique].[Id].&[22560966] on 0
    FROM MyCube
    The the final question would be : Why this member which is returned by the SQL query is not present in my dimension ?
    I tried deletiong my cube it did not changed a thing. A noticeable thing is that the faulty attributes key are the same every time.

    Hi RodolpheAV,
    The error means SSAS could not find a record in the dimension table [table name] where column [column name] contained value [value]. For more information, you can look into the following articles:
    Error messages when you try to process a database or a cube in SQL Server 2005 Analysis Services: "The attribute key cannot be found" and "The record was skipped because the attribute key was not found:
    http://support.microsoft.com/kb/922673
    SSAS Quick Reference: Attribute Key Cannot Be Found:
    http://www.ssas-info.com/analysis-services-articles/66-mgmt/1963-ssas-quick-reference-attribute-key-cannot-be-found
    TechNet Subscriber Support
    If you are TechNet Subscription user and have
    any feedback on our support quality, please send your feedback here.
    Regards,
    Bin Long
    TechNet Community Support

Maybe you are looking for

  • Connect Macbook pro to 2 monitors?

    Hi I have a 13'' MacBook Pro (6 months old), with Thunderbolt port. I want to connect it to 2 external displays, both have VGA / DVI ports. I want to have my macbook pro display as primary, and each of the 2 external as extended, not cloned. Can I us

  • Return not linking

    Hi Experts My client has an issue (its not happening all the time but i cant seem to replicate it). Sometimes when copying a return document from a delivery note, it creates the return and states the base document numbers in the remarks of the return

  • Won't Connect to Internet After I-Tunes Download

    After I download I-Tunes software on to my computer the computer will not connect to the internet after it is turned back on. This problem goes away if I system restore to a date prior to loading the I-Tunes software. I have done this twice with the

  • How do I set the length of each clip?

    I have just begun trying to build a video with Premiere Elements 10 I have created many videos with Windows Movie Maker..found it boring for Effects etc.that's why I have this new software. Now my question is ..How do I  set the time for each clip? I

  • Creating a slide show DVD in Elements 9

    Is there some way to creat a DVD of the slide show I assembled in Element 9 without having to purchase Premier Elements?  I have no video files to process since I have no video camera.  When I try to burn a DVD or CD with the side show a screen pops