PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

set-hvpool to update pool settings using json file gives an error

Open Munipagadala opened this issue 5 years ago • 4 comments

The power shell error: Get-MapEntry : Cannot bind argument to parameter 'Value' because it is null. At C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:6274 char:59

  • ... $updates += Get-MapEntry -key $member.name -value $member.value
  •                                                         ~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-MapEntry], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MapEntry

Get-MapEntry : Cannot bind argument to parameter 'Value' because it is null. At C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:6274 char:59

  • ... $updates += Get-MapEntry -key $member.name -value $member.value
  •                                                         ~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-MapEntry], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MapEntry

Get-MapEntry : Cannot bind argument to parameter 'Value' because it is null. At C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:6274 char:59

  • ... $updates += Get-MapEntry -key $member.name -value $member.value
  •                                                         ~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-MapEntry], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MapEntry

Updating the Pool: VDI_Patch_test Exception calling "Desktop_Update" with "3" argument(s): "There was an error in serializing body of message Desktop_UpdateRequest: 'There was an error generating the XML document.'. Please see InnerException for more details." At C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:6334 char:8

  •    $desktop_helper.Desktop_Update($services,$item,$updates)
    
  •    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : CommunicationException

Munipagadala avatar May 08 '19 07:05 Munipagadala