Reputation: 2735
I need to create a SSIS
Package which will run daily and export a table's data into a directory. The Exported excel
have a predefined format. So I have used a template excel. (Excel
File with Column Headers
only)
Here are the steps I followed:
Created a variable
Filename with holds the location and name of the excel
to be generated
(based on current date value)
Added a File System
Task in Control flow. Give Source as Template Excel
and Destination as the Filename
variable.
Added a Dataflow
Task in control flow and connect it with File System Task.
In Dataflow
Task, added a OLE-DB source
and configure it with the source table
(the table data needs to be copied into the excel
)
Added a Excel Connection manager
and changed Excel File path
property to filename
variable.
Added a Excel Destination
and configure it with Excel Connection manager.
set Delayed validation
true in Data flow
task and Executed the package.
Control Flow:
Data Flow:
The Package is running successfully and the excel
file also get generated in the desired directory. But the excel
file skips around 19000 rows copying data after that . why it is happening?
Can any one help me to solve the issue.
Thanks for the help
Upvotes: 0
Views: 1517
Reputation: 1394
It is possible that the file is already formatted , and that lines are down at the bottom...often excel jumps or add lines if you do not delete the lines already used even if empty...we must also consider strange events!
Upvotes: 1