Problem Note 37478: An error can occur when you export large volumes of data from the SAS® System to Microsoft Excel 2007 workbooks
When you export a large volume of data to Excel 2007 workbooks, you can receive the following error:
NOTE: File "c:\sastest\testexport.xlsx" will be created if the export process succeeds.
ERROR: Execute: Unable to insert row
WARNING: File deletion failed for _IMEX_.Data.DATA.
ERROR: Export unsuccessful. See SAS Log for details.
The error occurs when you run an EXPORT procedure similar to the following:
proc export data= x outfile="c:\sastest\testexport.xlsx"
dbms=excel replace;
sheet="Data";
newfile=yes;
run;
The problem occurs because the SAS System uses the Microsoft Access Connectivity Engine to create these files. When you use large files that exceed approximately 50,000,000 cells, the Access Connectivity Engine uses more memory than a single Windows process has available.
To circumvent the problem, you should divide the data across multiple sheets. SAS Note 16587, "Exporting SAS data sets of more than 65,536 rows to Microsoft Excel", contains a program that you can use to split the data. You can set the program as high as the number of rows the machine's memory allows.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | Microsoft Windows Server 2003 Datacenter Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.21 | | 9.2 TS2M0 | |
Windows Vista | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows XP Professional | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows XP 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
*
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.
An error ("Unable to insert row") can occur when you export large volumes of data to Microsoft Excel workbooks. The problem occurs because of memory limitations in the Microsoft Access Connectivity Engine (ACE) drivers on the machines.
Type: | Problem Note |
Priority: | high |
Topic: | Data Management ==> Data Sources ==> External Databases ==> MS Excel
|
Date Modified: | 2009-10-20 08:14:41 |
Date Created: | 2009-10-15 09:49:59 |