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

Similar Messages

  • 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

  • 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

  • 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

  • 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? 

  • Stored procedure not found when creating a new recordset binding in Dreamweaver CS6 with ColdFusion Server 11

    Stored procedure not found when creating a new recordset binding in Dreamweaver CS6 with ColdFusion Server 11.  I can see the tables and views in the database tab, but no stored procedures.  If I connect to a data source created in ColdFusion Server 6 I am able to see the stored procedures.

    Ben thanks for the reply!
    Yes that is the process I am following:
    In Dreamweaver, open the page that will run the stored procedure.
    In the Bindings panel (Window > Bindings), click the Plus button, and then select Stored Procedure.
    In the Data Source pop‑up menu, select a connection to the database containing the stored procedure
    Enter the ColdFusion Data Source user name and password.
    At this point in the procedure drop down I would get a message that said No Stored Procedure Found.
    Right now it appears to be working, I had to create a new site that pointed to the older CF 6 server's data source and create a page following the process above, then when I went back to the CF 11 site the stored procedures were now populated.  I need to make sure it is pulling from the correct server but right now it appears to be working.
    Thanks
    Dwight

  • Is it possible to add and view your key words when creating a web site from Lightroom 4?

    Is it possible to add and view your key words when creating a web site from Lightroom 4?

    Hi,
    I had the same problem with
    "java.lang.NullPointerException at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)"
    when I included ViewUsages dynamically in an action handler (outside wdDoInit()).
    The code below fixed that problem.
    This code creates a new OutboundPlug for the embedding view with the embedded view as target and fires the plug.
    <i>// Create OutboundPlug
    IWDOutboundPlugInfo outboundPlug = embedderViewInfo.createOutboundPlug();
    //Create navigation link
    rootViewUsage.createNavigationTarget(outboundPlug.getName(), interfaceViewUsage, "Default");
    // fire navigation link
    wdThis.wdGetAPI().firePlug(outboundPlug, Collections.EMPTY_MAP);
    </i>
    I hope I could help you. Probably you don't need the information anymore, but perhaps anybody else has the same problem.
    Regards, Alex

  • "No bean found under attribute key" exception when a JSP is not accessed

    HI,
    We are using weblogic 7.1 SP6, Oblix and TRC struts in our application. During normal access to various pages system works fine. When the application is not accessed for 30 minutes system displays session expired exception. But some time when a page is not accessed for some time, say 15 - 20 minutes and user clicks any link system displays a exception dump in the screen. The exception displays for pages with track changes. The exception starts with following line
    [ServletException in:/jsp/include/Header.jsp] No bean found under attribute key HomepageFormBean' javax.servlet.jsp.JspException: No bean bound under attribute key HomePageFormBean at org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:221) at org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
    After closing the window and tried to access the same page then the system works fine. The above exception is intermittent.
    Any help is highly appreciated.
    Thanks,
    K.Pushparaj

    Hi dear use this code i modified
    <logic:iterate id="lstDelNotificationData" name="institutionHomeForm" property="delNotification_data" indexId="i" >
    <table cellpadding="0" cellspacing="0" width="320" border="0">
    <tr>
    <td valign="top"><img src="/images/bullet2.gif" alt=" "></td>
    <td>
    "sm"> Your FYE <bean:write name="lstDelNotificationData" property="ins_fye"/> Annual ......is
    Now u will not get bean problem

  • Attributes being removed when creating a Purchase Order

    Hi,
    We are running SRM 4.0 ECS.
    I have an issue when creating a PO directly (BBP_POC).
    When I have enter the item line information and then go details to enter a G/L account, the attributes UOM and Gross Price are removed. I need to go <i>Back to Item overview</i> to fill them in again. If I do it in <i>Item detail</i>  in the <i>Basic data</i> tab, the attribute data keeps on being removed.
    Does anyone know why this happens?
    Message was edited by:
            Anders Halmind
    Message was edited by:
            Anders Halmind

    HI,
    That means the PO print program is using some table (EKKO, EKPO,KONV and may be other for condition record) to get the value of the PO.
    now those table get updated only after you save the PO.
    That's the reason you are not getting any value in print preview before saving.

  • Access key requested when creating new program in abap editor

    I am trying to create a new program in sap netweaver 7.01 trial version. netweaver promts me for creating object confirmation but after that I get a register object dialog box requesting an access key on the demosystem installation. where can I find such a key.
    please note that I am not a SAP customer. Its a trial version of netweaver 7.01 on a stand alone pc. Furthemore I know that naming my programs starting with Z will bypass the object registration key.

    Hi ,
    when you are using the first time se38 it will ask developer access key 
    u will get that from the service market place 
    take the help of u r basis consultant 
    regards,

  • How to conserve attributes of mask when creating it Ai CS4 mac?

    I have a rectangle with an outline x color x and when I create the mask disappear its attributes (attached image), there is some way of not having to return to apply to the outline and the color to the profile of the mask? , thanks.

    Hello Scott,
    Associate another way that I have discovered,
    1. When creating the mask disappears the outline and color
    2. We selected the resulting object and we assigned he himself thickness of outline that tapeworm
    3. Txan colored again
    And we can do it with several simultaneously

  • ***No Table found, when creating a recordset to MySQL Database

    I have made a successful connection to the MySQL database.
    When attempting to create a record set (Query) under the Application/Bindings Tab, I select the connection, but then the Table field says *** No Table Found
    Also under Application/Databases tab, the connections appear. When expanding the + for the Table it says "None"
    I do have Tables in the MySQL database which Dreamweaver has a connection to, so that is not the problem.
    I've searched multiple forums on the internet for this problem, and while I have found that others have had this problem, I have not seen any solutions.
    Any help would be greatly appreciated.
    I am a novice in this area, so if you need any additional information from me, please be as specific as possible as to where and how I can get it.
    Thank you in advance for your help.
    Additional information:
    Windows 7 Ultimate
    Dreamweaver CS3 (Creative Suite 3 Web Premium)
    Apache 2.2.15-win32-x86-openssl-0.9.8m-r2
    PHP-5.2.6-Win32
    mysql-workbench-gpl-5.2.25-win32
    Freshly reformatted computer and only installed the above software along with AVG antivirus.
    Edit: I should also note that this is for a local testing server. I am not trying to connect remotely.
    Best Regards,
    Blain
    Message was edited by: Blain1976

    Now the problem has gone from bad to worse.
    I previously had a connection to my database but just couldn't see the tables.
    Now after I added another user I can't even make a connection. Instead I get an error message that says "An unidentified error has occured"
    My server and database are actually running. I can loginto my database through the MySQL workbench. It says it's running. The apache server also says it's running and if I key in localhost in my internet explorer it says "It works!"
    I have now deleted the new user in MySQL  that I added and now I can't even connect to the database in Dreamweaver.
    Any suggestions?
    Thank you,
    Blain

Maybe you are looking for

  • HT4061 I forgot my security questions... What is the easiest way to change/recover them?

    So I forgot my iTunes security questions and I cant figure out how to reset them or change them, can someone help me please?

  • Purchasing Music From Foreign iTunes Stores

    I had just recently discovered the option of "My Store" at the very bottom of iTunes which enables customers to view other iTunes stores all over the globe. When trying to purchase music from the Österreich iTunes store, I found I wasn't able to do s

  • Help please:  Placement of external files?

    I have a situation where after the WAR file is deployed, PDF files will be added to the site that need to be accessable (their URL will be known) from the web. Where should these PDF files be put? For example, say I need to allow a user the ability t

  • Pages won't sort alfabetically

    Hello, I made a tabel with 5 colums. I want to sort all content alfabetically. First colum starting with A and last one stopping with Z. For some reason, I can only sort ONE colum = meaning tis colum is sorted correctly. When i go to the next colum a

  • Why have I lost the ability to play video in iTunes?

    I recently upgraded to itunes 11.0 but now I seem to have lost the ability top play video podcasts, movies or even see trailers in the itunes store movie section. I did install an application called eyetvreporter to try to recover the activation code