AsBuiltReport / AsBuiltReport.VMware.vSphere

Repository for AsBuiltReport VMware vSphere module
https://www.asbuiltreport.com
MIT License
112 stars 39 forks source link

New-AsBuiltReport : Cannot bind argument to parameter 'Rows' because it is an empty collection. #119

Closed jakesza closed 8 months ago

jakesza commented 8 months ago

Bug description

Error Cannot bind argument to parameter 'Rows' because it is an empty collection. Report is created afterwards but blank except for heading.

Command-line input

New-AsBuiltReport -Report VMware.vSphere -Target '10.2.180.230' -Username 'administrator@vsphere.local' -Password 'password' -Format Word -OutputFolderPath 'E:\'

Steps to reproduce

New-AsBuiltReport : Cannot bind argument to parameter 'Rows' because it is an empty collection.
At line:1 char:2
+  New-AsBuiltReport -Report VMware.vSphere -Target '10.2.180.230' -Use ...
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport

Expected behaviour

A fully generated report

Screenshots

No response

Operating System

Windows Server 2019 Dekstop Experience

PowerShell Version

Name Value


PSVersion 5.1.17763.592
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.592
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PowerShell Modules

Name Version


AsBuiltReport.Core 1.3.0
AsBuiltReport.VMware.vSphere 1.3.3.1 PScribo 0.10.0

Additional Context

VCSA is version 8.0.1 with Essentials Plus licensing, The Primary site works which is on VC 7.0.3

Before submitting

jakesza commented 8 months ago

ok, I have created another powershell platform within the DC. I have aso updated the VCSA appliance to 8.0.2. Still getting exactly same issue.

New-AsBuiltReport : Cannot bind argument to parameter 'Rows' because it is an empty collection.
At line:1 char:1
+ New-AsBuiltReport -Report VMware.vSphere -Target '10.2.180.230' -User ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport
jakesza commented 8 months ago

Also tried the 1.3.4-RC1 build.

AsBuiltReport.VMware.vSphere\1.3.4\AsBuiltReport.VMware.vSphere.Style.ps1

Name                         Version
----                         -------
AsBuiltReport.Core           1.3.0
AsBuiltReport.VMware.vSphere 1.3.4
PScribo                      0.10.0
New-AsBuiltReport : Cannot bind argument to parameter 'Rows' because it is an empty collection.
At line:1 char:1
+ New-AsBuiltReport -Report VMware.vSphere -Target '10.2.180.230' -User ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport