Home Dashboard Directory Help
Search

Cannot bind argument because it is null. by HeMou


Status: 

Active


1
0
Sign in
to vote
Type: Suggestion
ID: 845719
Opened: 4/3/2014 3:17:11 AM
Access Restriction: Public
0
Workaround(s)
view

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
Details
Sign in to post a comment.
Sign in to post a workaround.