Branching after a file system task in SSIS without failing the package

前端 未结 9 1983
孤城傲影
孤城傲影 2021-01-22 16:56

If a file system task such as a rename fails, for example if the file does not exist, then this is considered an error by SSIS. This means the whole package fails. I can get aro

9条回答
  •  自闭症患者
    2021-01-22 17:56

    Use a expression and constraint combination on the "precedence constraint" connector. return success always from your previous task (it may be a script looking for the file) and if file found, set a variable. in the expression of the "precedence constraint" check for the variable value and return true or false. If your expression evaluates to false, the package will nto continue and yet you will not see any error. - Mayukh

提交回复
热议问题