Article ID: 824304 - Last Review: December 9, 2003 - Revision: 1.2 The Depth property of the Level object always returns -1SYMPTOMSThe Depth property of an instance of the Level object always returns
-1 instead of the actual depth level. CAUSEThis problem occurs because the code that maps Microsoft SQL Server 2000 Analysis Services internal data types into VARIANT subtypes has changed. The VARIANT subtype that is assigned to the value that represents the depth level has changed. Because the GetSchemaObject method does not support the new subtype for the Depth property, GetSchemaObject ignores the new value and leaves the default value of -1. This value is assigned by the constructor of the Level object. WORKAROUNDTo work around this problem and obtain the actual depth level, use the
LevelDepth property of the first member of the Level object. To do so, use the following code: STATUSMicrosoft is aware of this problem. This problem might be fixed in a future version of the products in the "Applies to" section. MORE INFORMATIONTo reproduce this problem, use the following code:
| Article Translations
|
Back to the top
