Cannot bind argument because it is null. - by HeMou

Status : 

 


1
0
Sign in
to vote
ID 845719 Comments
Status Active Workarounds
Type Suggestion Repros 0
Opened 4/3/2014 3:17:11 AM
Access Restriction Public

Description

phonesUsers VarType:  System.Object[]
phonesALL   VarType:  System.Object[]

phonesUsers Count:  153
phonesALL   Count:  699

phonesUsers NULL
Compare-Object : Cannot bind argument to parameter 'DifferenceObject' because i
t is null.
At C:\USR__\1.ps1:40 char:68
+ $c = Compare-Object -ReferenceObject $phonesALL  -DifferenceObject $phonesUse
rs  ...
+                                                                    ~~~~~~~~~~
~~
    + CategoryInfo          : InvalidData: (:) [Compare-Object], ParameterBind
   ingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
   icrosoft.PowerShell.Commands.CompareObjectCommand
Sign in to post a comment.