Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cube Processing Error

Posted on 2012-03-21
4
Medium Priority
?
405 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 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

886 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