Error Message 'Cannot expand named range' with Excel and HSODBC
(Doc ID 466338.1)
Last updated on OCTOBER 17, 2019
Applies to:
Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.1.0.6 [Release 9.2 to 11.1]Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Microsoft Windows (32-bit)
Symptoms
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
------ ------
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
----- -----
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
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
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |