Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to make my SSIS package execute successfully, even when there is no input feed file.

Status
Not open for further replies.

SQLSSISDev

Programmer
Sep 26, 2014
3
US
Hello,

Currently I am running a SSIS package scheduled daily at 7 A.M. It expects two feed files from two different folders.

The first step in my package will rename the input files in those folders to names which the package can understand. I have created two variables in my package to read the files with those file names. I used these variables in connection managers.

If any of these folders doesn't have input files when the package runs, the package will fail. Can someone please let me know how to make the package the run successfully even there is no input feed?

Any help is highly appreciated.

Thank you.
 
you better off creating a script task on your package and check for the existence of the required files using the filesystem io classes

this would do all the moves you require and set variables accordingly which can then be used to control the remaining flow of the package

Regards

Frederico Fonseca
SysSoft Integrated Ltd

FAQ219-2884
FAQ181-2886
 
it is common task set variable something doWeRun and default value N.
your first task should be script task which using vb or c# check if both file exist and if yes change value on doWeRun variable to Y
on connection to next task change constraint options to "Expression and Constraint" and add a condition @[doWeRun] == Y
and it is all what you need
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top