2011-06-07 151 views
1

我是OLAP的新手,并想出如何制作一个多维数据集并对其进行处理。然而,当我用它玩太多,我终于遇到了这个错误:处理OLAP错误

Errors in the OLAP storage engine: The attribute key cannot be found: Table: dbo_v_MYEntities, Column: uniqueId, Value: 2548. Errors in the OLAP storage engine: The record was skipped because the attribute key was not found. Attribute: Unique Id of Dimension: v MY Entities from Database: Test Cube New, Cube: MYdm MyApp - Views, Measure Group: v MY Entities, Partition: v MY Entities, Record: 2526.

看来,一些价值被卡住,和多维数据集所期望的价值在那里,我知道我可以编辑错误性质并阻止它抛出异常,但我希望能够解决它。

我不介意清理立方体,以便它从头开始重新生成自己,但我似乎无法做到这一点。

一旦我得到这个错误,即使我删除立方体,并从头开始重新创建它,错误仍然存​​在。

到目前为止(在我的测试环境中)唯一的解决方案是更改项目部署目标属性中的数据库名称。显然这不会在生产中发挥作用。

回答

1

基本上,

Table: dbo_v_MYEntities, Column: uniqueId, Value: 2548

意味着你的表/视图“dbo.v_MYEntities”有一栏“UNIQUEID”,其中包含一个值“2548”,这是不是这是关系到DBO表。 BIDS中维度用法选项卡中的v_MYEntities。这通常发生在dbo.v_MYEntities是事实表时,并且相关维度表不包含密钥。我会检查模式的参照完整性,试图确定发生这种情况的原因并在ETL或视图定义中更正它。