How to continue only if records present in SSIS -


for diagram:

ssis package

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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -