I have a problem with flow in SSIS package. For increasing the performance I have generally the same logic for importing data from MS Access files into SQL Server Database:
- 1st Task - try to bulk insert data (Table or View - fast load)
- If there was a failure (e.g. constraint violation), the whole bunch of records is passed to next task - normal insert (Table View)
- all problem records are passed to next steps for loggin into flat files (txt)
The problem I face is that even when the first insert went fine, I still reach the failure flow and an empty error log file is created all the time. In my understanding the process should reach this point only in case there were problems before.
For better understanding I attach image with execution results and there are green ticks up to the end.
Would appreciate any advice for workaround. What I need is to create error log files - only when there was any error with details about the problem.
Thanks!