ParameterArgumentValidationErrorNullNotAllowed for Reports that are not policies
Opened this issue · 0 comments
jazzprox commented
After testing with the basic usage in the readme file, only the Firewall Policy Report succeeded, whereas the other reports did not. Here is the error:
$Config.saveAddressReport('C:\firewall-address.csv')
ConvertTo-Csv : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\PSFortigateParser\PSFortigateParser.psm1:1704 char:13
-
ConvertTo-Csv -NoTypeInformation -Delimiter (Get-Culture) ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (:) [ConvertTo-Csv], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ConvertToCsvCommand