The pipeline has been stopped in parallel execution

Welcome Forums General PowerShell Q&A The pipeline has been stopped in parallel execution

Viewing 1 reply thread
  • Author
    Posts
    • #251507
      Participant
      Topics: 1
      Replies: 0
      Points: 17
      Rank: Member

      Hello.

      I have pipeline break when trying proceed hashtable keys to foreach-object in parallel. So it happens almost always, but some object gonna pass normally. I have no idea which object cause this problem, because it break before start execution. Keys dont have null object (i check it double)

      code

       

      error

      full error stack

      1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection 1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, PSInvocationSettings settings) at Microsoft.PowerShell.EditorServices.Services.PowerShellContextService.<>c__DisplayClass89_01.<ExecuteCommandAsync>b__0() in D:\a\1\s\src\PowerShellEditorServices\Services\PowerShellContext\PowerShellContextService.cs:line 778 at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location where exception was thrown --- at Microsoft.PowerShell.EditorServices.Services.PowerShellContextService.ExecuteCommandAsync[TResult](PSCommand psCommand, StringBuilder errorMessages, ExecutionOptions executionOptions) in D:\a\1\s\src\PowerShellEditorServices\Services\PowerShellContext\PowerShellContextService.cs:line 778 at Microsoft.PowerShell.EditorServices.Services.PowerShellContextService.ExecuteCommandAsync[TResult](PSCommand psCommand, StringBuilder errorMessages, ExecutionOptions executionOptions) in D:\a\1\s\src\PowerShellEditorServices\Services\PowerShellContext\PowerShellContextService.cs:line 823 Message : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The pipeline has been stopped. Data : System.Collections.ListDictionaryInternal Source : System.Management.Automation HResult : -2146233087[/crayon]

       

      enviroment

       

       

      • This topic was modified 1 month ago by franky.why.
      • This topic was modified 1 month ago by grokkit.
    • #257540
      Participant
      Topics: 0
      Replies: 25
      Points: 163
      Helping Hand
      Rank: Participant

      The error record contains: ‘The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop’.

      So there must be some problem in the data that is causing an exception. Try changing $ErrorActionPreference to ‘Continue’. You may get more information. At least you may see where the data is missing or broken.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.