Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Executing Powershell through SSIS

$
0
0

I'm running a powershell script from the Execute Process task in SSIS(2008). When something in my Powershell script fails I'd like the task to fail. I've done the following:

FailTaskIfReturnCodeIsNotSuccessValue = True

Success Value = 0

When I run powershell from a command line I get a return code of '8'. (Thats what I want for testing). But when I run it via the task, the task still completes successfully. I want it to fail unless the return code is 0.

Any suggestions?

Thanks!

MarkA


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>