Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cube Processing Error

Posted on 2012-03-21
4
Medium Priority
?
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

670 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