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

前端 未结 9 1881
孤城傲影
孤城傲影 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:49

    I know that this is an old question, but it might help someone looking for an answer.

    Combined with user756519's quite good answer, stopping propagation of the error prevents the package from failing. This means that you can effectively use the failure as a branch without worrying about it mincing your package.

    See cfrag's answer on this question for more information. That answer points to this blog entry which explains how to set the propagate variable for the OnError event handler (make the event handler, open variables view, show system variables, set Propogate to false).

提交回复
热议问题