Error Message 'Cannot expand named range' with Excel and HSODBC

(Doc ID 466338.1)

Last updated on JANUARY 19, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2 to 11.1]
Microsoft Windows (32-bit)


I use HSODBC with ODBC driver for MS Excel.

I've an Excel workbook with a sheet like below:

COL1     COL2
------       ------
a              10
b              20
c              30
d              40



In Excel, I defined a named range of cells called 'my_range' for the third rows:

COL1     COL2
-----         -----
a              10
b              20



I want to insert data in the named range of cells 'my_range' and I get this error message:


SQL>  insert into my_range@excel values ('e',50);
 insert into my_range@excel values ('e',50)
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_Execute: errors.h (1645): ;
[Microsoft][ODBC Excel Driver] Cannot expand named range. (SQL State: S1000; SQL Code: -5034)
ORA-02063: preceding 2 lines from EXCEL





Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms