iRon7 / Join-Object

Combines two objects lists based on a related property between them.
MIT License
107 stars 13 forks source link

"The property sid cannot be found on the left object." error should refer to the caller #47

Open iRon7 opened 1 year ago

iRon7 commented 1 year ago

Stackoverflow: https://stackoverflow.com/questions/76721639/compare-arrays-in-powershell

$Array1 = ConvertFrom-SourceTable '
Srvname  Loginname sid    passwordhash
Srv1     L1        0xdbc  0xfsfhdfh
Srv2     L2        0xdbe  0xfsfhdfe
Srv3     L3        0xdbc  0xfsfhdfd'

$Array2 = ConvertFrom-SourceTable '
Srvname  Loginname sid    passwordhash
Srv1     L1        0xdbd  0xfsfhdfh
Srv2     L2        0xdbe  0xfsfhdfh
Srv3     L3        0xdba  0xfsfhdfb'

$Array1 | OuterJoin $Array2 -on sid, passwordhash
ProcessObject:
Line |
  95 |          $steppablePipeline.Process($_)
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The property sid cannot be found on the left object.