Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rollback SSIS Data Flow Tasks if one fails

In my SSIS package I have several data flow tasks.

Is there a way in SSIS which says if the F0101Z2 task completes but the F03012Z1 fails rollback what was passed in the F0101Z2 step?

My SSIS package

Any guidance would be appreciated.

Thanks

like image 491
Jonno Lord Avatar asked Nov 02 '22 23:11

Jonno Lord


1 Answers

Set TransactionOption=Required on Package Level, and configure all Tasks to TransactionOption=Supported(by default Supported). They will all join the transaction, and if any fail, the transaction will be rolled back. Note: First Make Sure that MSDTC(MS Distributed Transaction Co-coordinator) is enabled in the Control Panel--->Admin tool-->Services.

like image 199
Rajashekhar Avatar answered Nov 15 '22 06:11

Rajashekhar