I'm checking to see if a File exists through a script task. When the file doesn't exist, I was expecting execution to go to the ElseIf, but instead SSIS crashes and the task turns red. this is what I have. What's going on?
If File.Exists(Dts.Variables("gstrMergeFile").Value.ToString()) Then ...