Search

workflow error, PSSenderInfo has not been set by yzorg

Active

1
0
Sign in
to vote
Type: Bug
ID: 770079
Opened: 11/5/2012 6:02:07 AM
Access Restriction: Public
0
Workaround(s)
1
User(s) can reproduce this bug
I get the following error that looks like it is coming from inside PoSH workflow engine when running local, small workflows that return PSCustomObject.

The variable '$PSSenderInfo' cannot be retrieved because it has not been set.
At line:224 char:59
+                     $psBoundParameters['PSSenderInfo'] = $PSSenderInfo
+                                                         ~~~~~~~~~~~~~
    + CategoryInfo         : InvalidOperation: (PSSenderInfo:String) [], RuntimeException
    + FullyQualifiedErrorId : VariableIsUndefined

This happens at the end of the workflow.
Details (expand)
How often does this happen?
Always Happens

Have you seen this problem before in this product?

No, this is new to the most recent version
Reproduction Steps
1. Create workflow that uses inline scripts and returns PS-CustomObject back to calling script. I am using 'foreach -parallel' and some of the parallel tasks are throwing errors.
2. When the workflow completes I see the strict error.
Expected Results
Does not throw an error from PoSH workflow infrastructure when run with 'Set-PSDebug -Strict' set.
File Attachments
0 attachments
Sign in to post a comment.
Sign in to post a workaround.