PSHTML-AD-Report icon indicating copy to clipboard operation
PSHTML-AD-Report copied to clipboard

Get-HTMLContentDataTable Cannot bind .. empty collection during compiling report

Open mdegroot1983 opened this issue 7 years ago • 3 comments

Hi, The report looks great. I ran into issues during the compiling report phase. Can you look into this issue?:

Working on Dashboard Report... Done! Working on Groups Report... Done! Working on Organizational Units Report... Done! Working on Users Report... Done! Working on Group Policy Report... Done! Working on Computers Report... Done! Compiling Report... Get-HTMLContentDataTable : Cannot bind argument to parameter 'ArrayOfObjects' because it is an empty collection. At C:\Users\adminaspect\Documents\AD-reportMdG.ps1:1401 char:45

  • ... alReport.Add($(Get-HTMLContentDataTable $NewCreatedUsersTable -HideFo ...
  •                                         ~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-HTMLContentDataTable], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyCollectionNotAllowed,Get-HTMLContentDataTable

Get-HTMLContentDataTable : Cannot bind argument to parameter 'ArrayOfObjects' because it is an empty collection. At C:\Users\adminaspect\Documents\AD-reportMdG.ps1:1498 char:45

  • ... alReport.Add($(Get-HTMLContentDataTable $NewCreatedUsersTable -HideFo ...
  •                                         ~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-HTMLContentDataTable], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyCollectionNotAllowed,Get-HTMLContentDataTable

Save-HTMLReport : Cannot bind argument to parameter 'ReportContent' because it is null. At C:\Users\adminaspect\Documents\AD-reportMdG.ps1:1545 char:32

  • Save-HTMLReport -ReportContent $FinalReport -ShowReport -ReportName $ ...
  •                            ~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Save-HTMLReport], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Save-HTMLReport

mdegroot1983 avatar Dec 11 '18 07:12 mdegroot1983

Hello First of all, many thanks for this script. Awesome job ! Fyi, I'm running into the same issue above with a brand new domain controller based on Server 2016 Best

loicyannou avatar Dec 28 '18 10:12 loicyannou

I'm having the same issue

yert1969 avatar Aug 14 '19 17:08 yert1969

Same issue here. I rolled out a brand new Windows Server 2016, installed ADDS and also installed a Windows 10 VM in Azure. Windows 10 VM is joined to the domain, but when I ran the Report, I got the same error message and the report wasn't generated.

capics avatar Sep 21 '19 11:09 capics