I must be overlooking something pretty simple here in maybe the order of precedence I have my SSIS utilizing ForEach Loop Conatainer.
I created a Foreach Loop Container which has the folder location defined and Files set to *.csv. Variable Mappings is looking at the user::SourcePath and User::CSVFile. I have the Data Flow Task in the Foreach Loop Container which is picking up a Flat File (CSV) and loads to a specified SQL Table.
I did add two File System Tasks within the container. 1) move files into Archive Folder and 2) move files to Error folder. Based on the upload outcome email notification would be sent after files have been moved based on Success or Failure.
When running some testing, I moved a CSV file which doesnt have any data columns to align with the data flow task and the data flow task was showing successful. The data, didnt actually load into the SQL table because the columns for upload do not align with the CSV file I was using for test. I was thinking this file test would create a Data Flow Task as failed, move the file to the Error location and send an Email Task stating the upload failed.
The File System Task which is run when the Data Flow Task shows successful, does move the file to Archive as configured and sends email notification. But the Data Flow Task is always showing successful.
Can someone please let me know what I overlooked? I compared another package which utilizes the Foreach Loop Container and does error handling and I cannot see where I have an added configuration when reviewing that handles this.
Any ideas as to what I may have overlooked on my end? Or maybe configured incorrectly?
↧