OLAP跳过级别层次结构

时间:2014-12-14 10:41:17

标签: sql-server ssas olap

我有立方体:

cube

和维度具有属性AppointmentID,CourseID,PatientID的HealthRecord。我为CourseID和AppointmentID属性设置了NullProcessing = Preserve。

我在那个课程中为他添加了Patient,Course和Appointment。我将HealthRecords与一些HrItems添加到该约会。在此之后,立方体处理很顺利。

然后我将HealthRecord(带有HrItem)直接添加到课程中:

INSERT INTO [HealthRecord] ([Id],[PatientID],[CourseID],[AppointmentID]) VALUES (N'61a69de5-75c0-4b48-8ef2-a3ff00f1c0f4',NULL,NULL,N'db5d256d-db9d-4342-829f-a3ff00f1b3dd');
INSERT INTO [HealthRecord] ([Id],[PatientID],[CourseID],[AppointmentID]) VALUES (N'7ba7c847-f996-49cb-88e8-a3ff00f1d54e',NULL,N'087ad199-260d-43cc-8dd7-a3ff00f1a09e',NULL);

INSERT INTO [HrItem] ([Id],[WordID],[HealthRecordID]) VALUES (N'18e7b735-7170-4641-a54c-a3ff00f1c0f4',N'00000043-0000-0000-0001-000000000043',N'61a69de5-75c0-4b48-8ef2-a3ff00f1c0f4');
INSERT INTO [HrItem] ([Id],[WordID],[HealthRecordID]) VALUES (N'cc841113-acb3-47cd-8faf-a3ff00f1e6c9',N'00000096-0000-0000-0001-000000000096',N'7ba7c847-f996-49cb-88e8-a3ff00f1d54e');

有错误: 处理时无法找到属性键:表:'dbo_HrItem',列:'HealthRecordID',值:'{7ba7c847-f996-49cb-88e8-a3ff00f1d54e}'。该属性为'Id'

如何处理?

0 个答案:

没有答案