XL2000: Error Accessing Data in Offline OLAP Cube
ID: Q210806
|
The information in this article applies to:
-
Microsoft Excel 2000
-
Microsoft Office 2000
SYMPTOMS
In Microsoft Excel, when you use an Online Analytical Processing (OLAP) cube definition file (.oqy) to return data defined in an OLAP cube, you receive error messages similar to the following:
Excel was unable to get necessary information about this cube. The cube might have been reorganized or changed on the server.
Contact the OLAP cube administrator and, if necessary, set up a new data source to connect to the cube.
-or-
Cannot commit the dimension 'COM (OLE) error [during Open operation] The name C is not valid.'.
CAUSE
This problem occurs when field names for dimensions or levels defined in the OLAP cube definition file contain any of the following characters:
apostrophe (')
carat (^)
slash (/)
backslash (\)
colon (:)
These characters are not valid in field names for dimensions or levels in the OLAP definition file, although these are valid in Structured Query Language (SQL) queries.
WORKAROUND
To correct this problem, edit the .oqy file and rename the fields so that the names for the dimensions and levels do not include any of the characters mentioned in the "Cause" section.
To rename fields in the OLAP definition file, follow these steps:
- Start Microsoft Query. If you do not have Microsoft Query installed, start the Setup program and install it.
- Open the .oqy file into Microsoft Query.
This starts the OLAP Cube Wizard.
- Click Next to go to Step 2.
- In Step 2, right-click the field name that you need to rename. On the shortcut menu, click Rename. Remove the invalid characters or rename the field.
Note that the field names you type here will appear in the PivotTable report in Microsoft Excel and do not have to be the same name as the fields in the source database.
- Click Next to go to Step 3.
- Choose any of the options in Step 3 to create the offline OLAP cube file. Click Help for more information about these options.
- Click Finish. In the Save As dialog box, click Save to save the .oqy file.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
You can create an OLAP definition file (.oqy) to store the query definition for an OLAP database. You can open the .oqy file in Microsoft Excel to automatically create the PivotTable report.
To create the .oqy file, follow these steps in Microsoft Query:
- Create a query in Microsoft Query and then click Create OLAP Cube on the File menu to start the OLAP Cube Wizard.
- Follow the instructions in Step 1 to create summary fields. Click Next to go to Step 2.
- In Step 2, follow the instructions to create dimensions for your cube. Click Next to go to Step 3.
- Select one of the three options in Step 3 to create your offline OLAP cube. Click Finish.
- In the Save As dialog box, type a name for your .oqy file and click Save.
REFERENCES
For more information about creating OLAP cubes, click Microsoft Query Help on the
Help menu, type "About OLAP queries" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned.
Additional query words:
OFF2000 XL2000
Keywords : kberrmsg
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug