Fail SSIS task when the mask to select files to be uploaded to FTP server using WinSCP matches no files

前端 未结 1 1280
时光取名叫无心
时光取名叫无心 2021-01-14 12:30

I\'m creating a SSIS package that uses a script task (via WinSCP) to upload a file to an FTP.

The upload works fine, however I need the process to fail if there is n

1条回答
  •  温柔的废话
    2021-01-14 12:45

    Assuming SSIS monitors process exit code, you can make WinSCP return exit code 1 by using option failonnomatch on:

    option failonnomatch on
    put ...
    

    0 讨论(0)
提交回复
热议问题