XL: Error: Opening Query Failed Accessing Oracle

Last reviewed: March 27, 1997
Article ID: Q116010
5.00 5.00c 7.00 7.00a WINDOWS kb3rdparty kberrmsg

The information in this article applies to:

  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Query for Windows 95, version 2.0
  • Microsoft Query for Windows, versions 1.0

SYMPTOMS

When you choose Get External Data from the Data menu to get data from an Oracle database, you may receive following error message in Microsoft Excel:

   Opening Query Failed

CAUSE

This error message may occur in Microsoft Excel when you attempt to get data from an Oracle database, and you include any of the following operators in the SQL Statement that requests the data:

   Minus
   Intersect
   Union
   Substring

WORKAROUND

Although there is no direct workaround for this problem, you may be able to get the desired results with joins rather than using the operators mentioned above (joins behave similarly to the SQL operators that generate the error message).

Steps to Reproduce Behavior

  1. In Microsoft Excel, choose Get External Data from the Data menu.

    This command will start Microsoft Query.

  2. In Microsoft Query, choose New Query from the File menu.

  3. In the Select Data Source dialog box, select the Oracle data source, and choose the Close button to close the New Query dialog box.

  4. Open a saved .QRY file that contains any of the following operators:

          Minus
          Intersect
          Union
          Substring.
    

  5. From the File menu, choose Return Data To Microsoft Excel.

  6. In the Microsoft Excel spreadsheet, do either of the following:

        - Double-click the returned data
    

          -or-
    

        - With the cursor in the result set, choose Get External Data from the
          Data menu, and then choose Edit Query.
    

The following error message will appear:

   Opening Query Failed


KBCategory: kb3rdparty kberrmsg
KBSubcategory: xlquery

Additional reference words: 5.00 5.00a 5.00c 7.00 7.00a back end backend
retrieve
Keywords : xlquery kb3rdparty kberrmsg
Version : 5.00 5.00c 7.00 7.00a
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 27, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.