Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7654141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:12:09+00:00 2026-05-31T12:12:09+00:00

Why am I getting the error for the code below: Get-Job -Id 1 |

  • 0

Why am I getting the error for the code below:

Get-Job -Id 1 | Select-Object -ExpandProperty childjobs | Where-Object {$_.state -eq 'Completed'} | Select-Object -ExpandProperty id | Receive-Job 

Receive-Job : The input object cannot be bound to any parameters for
the command either because the command does not take pipeline input or
the input and its propertie s do not match any of the parameters that
take pipeline input. At line:1 char:147
+ Get-Job -Id 1 | Select-Object -ExpandProperty childjobs | Where-Object {$_.state -eq ‘Completed’} | Select-Object
-ExpandProperty id | Receive-Job <<<<
+ CategoryInfo : InvalidArgument: (2:PSObject) [Receive-Job], ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.ReceiveJobCommand

However, this line works perfectly:

Receive-Job (Get-Job -Id 1 | Select-Object -ExpandProperty childjobs | Where-Object {$_.state -eq 'Completed'} | Select-Object -ExpandProperty id )

Any tips or helpful comments on the code are appreciated. I’m new to PowerShell.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:12:11+00:00Added an answer on May 31, 2026 at 12:12 pm

    The problem is that Select-Object -ExpandProperty id is sending a System.Int32 which isn’t what Receive-Job is expecting for it’s ISA/HASA binding. Remove -ExpandProperty so you keep the System.Management.Automation.PSCustomObject with the ID property.

    Get-Job -Id 1 | Select-Object -ExpandProperty childjobs | Where-Object {$_.state -eq 'Completed'} | Select-Object id | Receive-Job
    

    If you want to see the nitty gritty details of why a System.Int32 didn’t bind to Receive-Job you can use Trace-Command. This simplified example tries to bind a Int32 (current process ID) to Get-Process.

    Trace-Command -Name ParameterBinding  -Option All -Expression { $PID | Get-Process } -PSHost
    

    The output of this command is lengthy but it shows you everything PowerShell tried to do to bind the upstream object to the downstream cmdlet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this error message with the code below: class Money { public: Money(float
I’m getting system error when I try to compile the code below on Visual
Im getting the following error for the piece of code below : expression list
I'm getting the following error on the line of code below: Syntax error (missing
I am getting JQUERY undefined error. Do you have any idea (code below). <%@
I am getting an compilation error not a statement for the below code. Not
I am getting LNK2001 error. The code has been included below. Can someone please
All, I'm getting an error with the code below. Here is the error message
Why am I getting this error with the code below ParseException: End of string
I am getting the following error message on the code below (which is at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.