- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
First of all , thanks for this wonderful piece of work.. however I am getting below error, in the middle of script...
Creating chart...
Calculating Virtual Machine Average Usage Statistics for Cluster VMC01P
Gathering Cluster Resilience Information for Cluster VMC01P
Method invocation failed because [System.Object[]] doesn't contain a method named 'op_Subtraction'.
At C:\EIL\CPReport-v2.0-Community-Edition.ps1:496 char:4
+ $ClusterFreeMemory = $ClusterTotalMemory - $ClusterUsedMemory - $ACPolicyInte ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (op_Subtraction:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Method invocation failed because [System.Object[]] doesn't contain a method named 'op_Subtraction'.
At C:\EIL\CPReport-v2.0-Community-Edition.ps1:499 char:4
+ $ClusterFreeMemoryPercentage = $ClusterFreeMemoryPercentage - $ACPolicyIntege ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (op_Subtraction:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Method invocation failed because [System.Object[]] doesn't contain a method named 'op_Division'.
At C:\EIL\CPReport-v2.0-Community-Edition.ps1:512 char:4
+ $HAReservedMemory = ($ACPolicyInteger/100) * ($ClusterTemp | Get-VMHost | Mea ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (op_Division:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Creating chart...
Exception calling "DataBindXY" with "2" argument(s): "Data points insertion error. Number of X values is less than Y values
Parameter name: xValue"
At C:\EIL\CPReport-v2.0-Community-Edition.ps1:608 char:2
+ $Chart.Series["Data"].Points.DataBindXY($NameArray, $ValueArray) #Modified by M ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException