I'm having an issue exporting a large dataset (500k+) to Excel via SSIS, where the output file ends up with 0 rows exported. Before saying that I shouldn't be exporting that many records to Excel, let me state that I know and normally wouldn't. Accounting does not want a CSV and is unwilling to open a CSV in Excel.
Using Visual Studio 2012 SSDT, here are the components involved.
- Execute SQL Task -> Creates the empty file with headers
- Data Flow Task ->
- OLE DB Source -> SQL Query
- Excel Destination
While the package is running, you can see records flowing from the source to the destination. The package completes without error, but when you open the file, it's empty. The only thing in there is the header.
If I select the Top 1000 records and export to Excel, it works as intended.
Some things I've tried:
- Export to Excel on the network
- Export to Excel locally
- Export to CSV to Excel on both network and locally
- Export to Ole DB Destination using Office Access Database Engine 12.0 with "Excel 12.0" extended properties.
- Tried running as different users
All with the same outcome.
Can anyone provide any insight into why this may be happening and how to proceed?
EXCEL
processes – Hadi