How to continue only if records present in SSIS -
for diagram:
the "get score files" script obtains list of files , puts them user variable filelist (datatype object). list thrown "find score files" loop, , process each item on list.
i need run if their's files had. if "get score files" script returns no objects, want package end successfuly. how tell that?
thanks
in "get score file" try code
if (files.count == 0) { dts.variables["files_present"].value = false; } else { dts.variables["file_list"].value =files; dts.variables["files_present"].value = true; }`
in ssis u should create 1 more variable(files_present) bool type
now in precedence constraints expression before each loop use files_present variable check file present or not`(if true file present else no files)
Comments
Post a Comment