key not found error

谁说我不能喝 提交于 2019-12-23 02:32:58

问题


I have a dimension called customer, with UnknowMember = True and UnknowMemberName = NA. When I process my dimension, I see all my customers plus a NA member. I also configured ErrorConfiguration = IgnoreError and KeyErrorLimit = 100

I have a row on my fact with NULL on the customerID and the Cube fails to process with this error (its changing NULL to 0, not sure if it is expected):

Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'dbo_FactSales', Column: 'CustomerId', Value: '0'. The attribute is 'Customer'.

I was expecting that, based on my configuration of the dimension, that the NULL row would be assigned to the NA member of the dimension.

What am I missing? Is it possible to be done?

FYI: I know that I could have a Unknow record on my db and deal with it on the ETL process, but I would like SSAS to handle this situation.


回答1:


hey lads thanks for the help. the problem was that I was doing these configurations at the dimension. I should have done in the Measure group.



来源:https://stackoverflow.com/questions/9738803/key-not-found-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!