SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Training
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


FAQ Topics

All FAQ's
General DBA
General Developer
DBA Performance Tuning
Developer Performance Tuning
Clustering
Error Messages

USEFUL SITES :

ASP.NET Tutorials
Windows and SQL Azure Tutorials
Cloud Hosting Magazine
SharePoint Tutorials
Windows Server Help

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server

More     
 
Latest FAQ's

Add Node to A SQL Server failover Cluster failed with invalid ...
SQL Server Destination remote server error
Setting Up Data And Log Files For SQL Server
Will Check Constraints Improve Database Performance?

More     
   
Latest Software Reviews

dbForge Review
Spotlight on ApexSQL Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Data Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Doc 2008

More     

Error messages when you try to process a database or a cube in SQL Server 2005 Analysis Services: "The attribute key cannot be found" and "The record was skipped because the attribute key was not found"



The may receive the following error messages when you try to process a database or a cube in SQL Server 2005 Analysis Services: "The attribute key cannot be found" and "The record was skipped because the attribute key was not found".

Solution
This issue occurs because a fact table for a cube has one or more records that contain an attribute key, and this attribute key does not exist in the corresponding dimension table. This behaviour may occur when you have not processed the corresponding dimension before you process the cube or when the underlying tables have mismatched data. If the "Value:" field in the message has no number after it, the fact table must contain null data.

The following are solution that you can try to resolve this:
1.  Process all dimensions first with Process Full Process Option and then the reprocess the cube again.
2.  Verify whether thet processing cube data source has the correct SQL Server instance and database.
3.  Update the records to use an existing attribute key by running a update statement. 
 
UPDATE <TableName>
SET <KeyName> = <ExistingKeyValue>
WHERE <KeyName> = <InvalidValue> OR <KeyName> IS NULL
 

4.  Insert additional records to Dimension table to match fact table attributes. 
 
Solution 3 and 4 indicates that there is an issue with data integrity in your database. These issues can be minimized by having a foreign key constraint between fact and dimension tables.

5. There is an option to process a cube ignoring errors. This method is not recommended as it can give wrong information.
  a.  In the Process Database – DatabaseName dialog box or the Process Cube – CubeName dialog box, click Change Settings.
  b.  In the Change Settings dialog box, click the Dimension key errors tab. Image shows this dialog.
  c.  Click Use custom error configuration.
  d.  In the Key not found list, change the default value from Report and continue to Ignore error.
  e.  Click Ignore errors count.
  f.  Click OK to close the Change Settings dialog box.
  g.  Click OK to process the database or the cube.








C# Help and Tutorials | PHP MySQL Tutorial | Sharepoint Tutorial | Azure Tutorial | Cloud Hosting Magazine | ASP.NET Tutorials | Windows Server Help | Windows Phone Pro | Silverlight Ace | Visual Studio Tutorials | Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | SQL Server Training Videos | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 2010 Jude O'Kelly. All rights reserved