OWC10: PivotTable CommandText Fails If Cube Has a Hidden Dimension (810358)



The information in this article applies to:

  • Microsoft Office XP Web Components

SYMPTOMS

When you run a Multidimensional Expressions (MDX) query by using the CommandText property of the Microsoft Office Web Components (OWC) PivotTable, you may receive the following error message. This error message occurs if the query references a hidden dimension in a Microsoft Analysis Server 2000 cube:

The query could not be processed. The data provider didn't supply any further error information.


The data does not appear as a result of the query.

CAUSE

The problem is caused by inconsistency in the visibility of the dimension in datasets that are returned to OWC by Analysis Server. Although a dimension may be hidden in the cube, and therefore not present in the schema rowset, that dimension can appear in the row, the column, or the slicer rowsets from the query. This causes inconsistent results that are based on what OWC believes the cube must look similar to. This can result in the error mentioned earlier when you run an MDX query from the CommandText property.

RESOLUTION

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Office XP Public Update that contains this fix.

To resolve this problem immediately, download the fix by clicking the download link later in this article or contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date         Time   Version             Size   File name
--------------------------------------------------------------
13-Nov-2002  01:33                 2,749,972   Owc10.msp
13-Nov-2002  08:26                11,175,968   Owc10ff.msp
13-Nov-2002  07:38                     7,415   Readme.txt


After the hotfix is installed, the English version of this fix will have the file attributes (or later) that are listed in the following table.

Date         Time   Version             Size   File name
--------------------------------------------------------------
08-Nov-2002  18:46  10.0.4705.0    7,322,696   Owc10.dll

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

To reproduce the problem, you must have a computer with Analysis Server 2000 installed and Microsoft Office XP installed.

Steps To Reproduce the Problem

  1. Open Analysis Manager for Analysis Server 2000 and then select the Foodmart 2000 sample database.
  2. Under Cubes, right-click Sales.

    The shortcut menu for the Sales Cube appears.
  3. Click Edit.

    The Cube Editor appears.
  4. On Cube Editor, click to select Store under the list of Dimensions.

    View the properties of Store. The properties appear on the left below the Dimensions.
  5. Switch to the Advanced tab, find Visible in the list of properties, and then set Visible to False.
  6. Click to Save the configuration changes and then exit Analysis Manager.
  7. On your computer with Office XP installed, start Notepad and then add the following code to make an HTML file:
    <HTML><BODY><H3>OWC Test Query</H3>
    <OBJECT id="PivotTable1" height="217" width="502"
     classid="clsid:0002E552-0000-0000-C000-000000000046"></OBJECT>
    </BODY>
    <SCRIPT language="VBScript">
      Dim sDataSource
      sDataSource = "YourServerNameHere"
    
      PivotTable1.ConnectionString = "Provider=MSOLAP.2;Data Source=" & _
          sDataSource & ";Initial Catalog=FoodMart 2000"
      PivotTable1.CommandText = "select {[Measures].[Unit Sales]} on columns, " & _
          "order(except([Promotion Media].[Media Type].members, " & _
          "{[Promotion Media].[Media Type].[No Media]})," & _
          "[Measures].[Unit Sales],DESC) on rows from Sales"
    
    </SCRIPT>
    </HTML>
  8. Change the value of the sDataSource string from "YourServerNameHere" to the name of your Analysis Server computer (or "localhost" if that is the same computer).
  9. Save the file on a local hard disk with a .htm extension.
  10. Open Internet Explorer and then load the file you just saved.

    You receive the error when the CommandText property executes.

Modification Type:MajorLast Reviewed:4/7/2006
Keywords:kbQFE KBHotfixServer kbofficexppresp3fix kbprb kbOfficeWebPivot KB810358 kbAudDeveloper