I have an SSIS package that calls some powershell scripts to consume web services. The problem is that when I write to stderror or stdout, the StandardErrorVariable and StandardOutputVariable are not picking up anything that is written to them from the script.
The scripts execute just fine, so it isn't a problem with calling the script it just seems as if the standard output streams are not coming back to SSIS. Here's how the Execute Process task is set up:
I've tried various ways of writing output from powershell. Most sources seem to indicate Write-Information should work for stdout, and I'm using mklement0's answer in this thread but have also tried Write-Error and neither worked: How do I write to standard error in PowerShell?
Any ideas?