Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS crashes when File.Exists is false.

$
0
0

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
...


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>