Duplicate attribute key has been found (dimTime)


I generated dimTime table using script I got from the web where I added custom fiscal attributes. I followed SSAS step by step book to create time dimension and hierarchies and whn I try to process it I get the followin error:

Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dbo_DimTime', Column: 'calendar_quarter', Value: '2'. The attribute is 'Calendar Quarter'.

Obviosuly I must have went wrong somewhere but I do not know what his message exactly means and how to debug it. Let me know if you need more info.

Many thanks in advance
LVL 10
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

itcoupleAuthor Commented:
After several hours and comparing time dimension to MDX step by step cube I found that KeyColumns needs to be set up. Although when I followed SSAS step by step wizard according to instruction it doesn't mention this anywhere but I noticed I used AttirbuteType during wizard and probably becuase my Time table is different then maybe it didnt set it up correctly?

Anyway I know how to set it up manually more or less and that is valueable experience :)

I have still have some questions.... What is the purpose of Dimension Type TIME would regular not work? and what is the use of AttributeType when wizard is run. I selected date/year for year etc but what would happen if I left default regular option?

Thanks in advance
Setting the attribute type, level type and dimension type has special meaning for time dimension. There is whole set of time functions in MDX that need to know what member you are reporting e.g. YTD for year to date comparison.

For MDX functions reffers http://msdn.microsoft.com/en-us/library/ms145970.aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
itcoupleAuthor Commented:

Now that makes sense. It actually answered one of my future questions which I knew I would have to ask (YTD)

itcoupleAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.