Microsoft KB Archive/810358

= OWC10: PivotTable CommandText Fails If Cube Has a Hidden Dimension =

Article ID: 810358

Article Last Modified on 4/7/2006

-

APPLIES TO


 * Microsoft Office 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:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

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
 Open Analysis Manager for Analysis Server 2000 and then select the Foodmart 2000 sample database. Under Cubes, right-click Sales.

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

The Cube Editor appears. 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. Switch to the Advanced tab, find Visible in the list of properties, and then set Visible to False .</li> Click to Save the configuration changes and then exit Analysis Manager.</li>  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=&quot;PivotTable1&quot; height=&quot;217&quot; width=&quot;502&quot; classid=&quot;clsid:0002E552-0000-0000-C000-000000000046&quot;></OBJECT> </BODY> <SCRIPT language=&quot;VBScript&quot;> Dim sDataSource sDataSource = &quot;YourServerNameHere&quot;

PivotTable1.ConnectionString = &quot;Provider=MSOLAP.2;Data Source=&quot; & _ sDataSource & &quot;;Initial Catalog=FoodMart 2000&quot; PivotTable1.CommandText = &quot;select {[Measures].[Unit Sales]} on columns, &quot; & _ &quot;order(except([Promotion Media].[Media Type].members, &quot; & _ &quot;{[Promotion Media].[Media Type].[No Media]}),&quot; & _     &quot;[Measures].[Unit Sales],DESC) on rows from Sales&quot;

</SCRIPT> </HTML> </li> Change the value of the sDataSource string from &quot;YourServerNameHere&quot; to the name of your Analysis Server computer (or &quot;localhost&quot; if that is the same computer).</li> Save the file on a local hard disk with a .htm extension.</li> Open Internet Explorer and then load the file you just saved.

You receive the error when the CommandText property executes.</li></ol>

Additional query words: kb2hr1

Keywords: kbqfe kbprb kbofficewebpivot kbofficexppresp3fix kbhotfixserver KB810358

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.