SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 60543: The error "No cell rectangle in range" occurs when you are reading an XLSX file for a named range of one cell

DetailsHotfixAboutRate It

When you import XLSX files using the IMPORT procedure with SAS/ACCESS® Interface to PC Files, you might receive the following error:

proc import datafile = "C:\temp\test.xlsx" dbms = xlsx out = onecell replace;
range = "One";
getnames = no;
run;
No cell rectangle in range
Requested Input File Is Invalid
ERROR: Import unsuccessful.  See SAS Log for details.

The problem occurs when the named range includes only one cell.

Workaround

To circumvent the problem, specify the range using the row-column format shown in this example:

proc import datafile = "C:\temp\test.xlsx" dbms = xlsx out = onecell replace;
range="Sheet1$A1:A1";
getnames = no;
run;

Click the Hot Fix tab in this note to access the hot fix for this issue.




Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to PC FilesWindows Vista for x649.39.3 TS1M0
Windows Vista9.39.3 TS1M0
Windows 7 Ultimate x649.39.4_M39.3 TS1M09.4 TS1M3
Windows 7 Ultimate 32 bit9.39.4_M39.3 TS1M09.4 TS1M3
Windows 7 Professional x649.39.4_M39.3 TS1M09.4 TS1M3
Windows 7 Professional 32 bit9.39.4_M39.3 TS1M09.4 TS1M3
Windows 7 Home Premium x649.39.4_M39.3 TS1M09.4 TS1M3
Windows 7 Home Premium 32 bit9.39.4_M39.3 TS1M09.4 TS1M3
Windows 7 Enterprise x649.39.4_M39.3 TS1M09.4 TS1M3
Windows 7 Enterprise 32 bit9.39.4_M39.3 TS1M09.4 TS1M3
Microsoft Windows XP Professional9.39.3 TS1M0
Microsoft Windows Server 2008 for x649.39.4_M39.3 TS1M09.4 TS1M3
Microsoft Windows Server 2008 R29.39.4_M39.3 TS1M09.4 TS1M3
Microsoft Windows Server 20089.39.4_M39.3 TS1M09.4 TS1M3
Microsoft Windows Server 2003 for x649.39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.39.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.39.3 TS1M0
Microsoft® Windows® for x649.39.4_M39.3 TS1M09.4 TS1M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.