Problem Note 54552: Importing Excel files fails and returns errors such as "Requested Sheet Name not found," "Requested Input File Is Invalid," or "Import unsuccessful"
When you import Excel (XLS) files that contain Cyrillic names, the following error appears:
proc import datafile="J:\excelfiles\sin.xls" out=sasdata dbms=xls replace;
sheet='Лист1';
run;
Requested Sheet Name not found on Excel -> J:\excelfiles\sin.xls
Requested Input File Is Invalid
ERROR: Import unsuccessful. See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.03 seconds
cpu time 0.01 seconds
The problem occurs because the XLS driver does not handle Cyrillic names in the worksheet. To solve the problem, resave the Excel file as an XLSX file and use
DBMS=XLSX in your PROC IMPORT code, as shown here:
proc import datafile="J:\excelfiles\sin2.xlsx" out=sasdatax dbms=xlsx replace;
sheet='Лист1';
run;
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to PC Files | Microsoft® Windows® for x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows 8 Enterprise 32-bit | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows 8 Enterprise x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows 8 Pro 32-bit | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows 8 Pro x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows 8.1 Enterprise 32-bit | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows 8.1 Enterprise x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows 8.1 Pro | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows 8.1 Pro 32-bit | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2003 Standard Edition | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2003 for x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2008 | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2008 R2 | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2008 for x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2012 Datacenter | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2012 R2 Datacenter | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2012 R2 Std | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows Server 2012 Std | 9.3_M2 | | 9.3 TS1M2 | |
| Microsoft Windows XP Professional | 9.3_M2 | | 9.3 TS1M2 | |
| Windows 7 Enterprise 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
| Windows 7 Enterprise x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Windows 7 Home Premium 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
| Windows 7 Home Premium x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Windows 7 Professional 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
| Windows 7 Professional x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Windows 7 Ultimate 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
| Windows 7 Ultimate x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Windows Vista | 9.3_M2 | | 9.3 TS1M2 | |
| Windows Vista for x64 | 9.3_M2 | | 9.3 TS1M2 | |
| 64-bit Enabled AIX | 9.3_M2 | | 9.3 TS1M2 | |
| 64-bit Enabled HP-UX | 9.3_M2 | | 9.3 TS1M2 | |
| 64-bit Enabled Solaris | 9.3_M2 | | 9.3 TS1M2 | |
| HP-UX IPF | 9.3_M2 | | 9.3 TS1M2 | |
| Linux | 9.3_M2 | | 9.3 TS1M2 | |
| Linux for x64 | 9.3_M2 | | 9.3 TS1M2 | |
| Solaris for x64 | 9.3_M2 | | 9.3 TS1M2 | |
*
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.
The XLS driver fails to import Excel workbooks with worksheets that contain Cyrillic characters. To circumvent the problem, resave the workbook as an XLSX file and import the file with the XLSX driver.
| Type: | Problem Note |
| Priority: | high |
| Date Modified: | 2014-11-17 15:51:36 |
| Date Created: | 2014-11-06 11:22:58 |