Solved

Cube Processing Error

Posted on 2012-03-21
4
396 Views
Last Modified: 2012-08-13
Hi All,

My cube has been processing fine without any error messages. I added a new dimesion table in the data ware house and added a foreign key in my Fact table. I then added the values in the data ware house and everything was fine.

I then added the dimension in the cube and processed the dimension. But when i try to process the cube it gives the following error message.

The attribute key not found. MyFactTableName: Column Name

and a warning sign below it saying that the attribute key is not found in my dimension table and gives the table name.

please note i am using SQL Server 2005 BI Studio.

any idea?

best regards
0
Comment
Question by:shah36
  • 2
  • 2
4 Comments
 
LVL 37

Expert Comment

by:ValentinoV
ID: 37751149
Did you check if your fact table's column (the one reported in the error) contains any values that are not present in the dimension?

Also, try full process if you haven't already, not just update.
0
 

Author Comment

by:shah36
ID: 37860163
Hi ValentinoV,

thanks for your comments and sorry for late reply actually i went on annual leave and came back on Monday.
Actually i added new dimension tables and in fact tables i added the foreign keys of those dimension tables. Those foreign keys got some NULL values as well and cube was converting those NULL values to 0. Because my dimension tables didn't have 0 in primary key columns so it was giving me error message.

I did a quick fix by adding the 0 to to my dimension tables primary key and then updated my fact table to set the null value to 0. I don't know is it a good approach or not but it works.
However it seems strange that in the cube some other values are  NULL as well for the foreign keys of the dimesnion tables which were created in the cube when i created the cube but the cube only gives the error message for newly created primary / foreign key relationship and dimensions.

regards
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 37860282
"Those foreign keys got some NULL values as well and cube was converting those NULL values to 0."

To prevent that you should change the NullProcessing property on the Key Column.  Right now it's probably set to ZeroOrBlank.  You'll probable want to change it to Preserve.

The following should be interesting to read: http://msdn.microsoft.com/en-us/library/ms345138(SQL.90).aspx
0
 

Author Closing Comment

by:shah36
ID: 37880219
Thank you so much it solves the problem in efficient way.

Regards
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now