Report can't be created - Cannot validate argument on parameter 'Config' #1671
Labels
bug
This issue or pull request addresses broken functionality
public-reported
This issue is reported by the public users of the tool.
Prerequisites
ScubaGear Version
1.5.0
Operating System
Windows 11
PowerShell Version
7.0+
M365 Environment and License(s)
M365 E5 - standard
🐛 Summary
I'm trying to run Scuba across all platforms and get the below errors. FYI we do run sharepoint, so I'm not sure why that test is failing as well:
PS C:\Users\path\Downloads\Scuba> Invoke-SCuBA -ProductNames *
WARNING: Error establishing a connection with powerplatform: The term 'Add-PowerAppsAccount' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
at Connect-Tenant, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Connection\Connection.psm1: line 131
at Invoke-Connection, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1: line 1474
at Invoke-SCuBA, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1: line 378
at , : line 1
WARNING: powerplatform will be omitted from the output because of failed authentication
WARNING: Error establishing a connection with sharepoint: The term 'Connect-SPOService' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
at Connect-Tenant, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Connection\Connection.psm1: line 194
at Invoke-Connection, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1: line 1474
at Invoke-SCuBA, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1: line 378
at , : line 1
WARNING: sharepoint will be omitted from the output because of failed authentication
Authenticating to each Product [Authenticating to teams; 6 of 6 Products authenticated to. ]
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 4.
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 2.
WARNING: Error running Get-ATPProtectionPolicyRule: Conversion from JSON failed with error: Unexpected character encountered while parsing value: U. Path '', line 0, position 0.
at Get-ErrorMessage, C:\Users\path\AppData\Local\Temp\tmpEXO_1inli121.xbr\tmpEXO_1inli121.xbr.psm1: line 331
at Write-ErrorMessage, C:\Users\path\AppData\Local\Temp\tmpEXO_1inli121.xbr\tmpEXO_1inli121.xbr.psm1: line 520
at CheckRetryAndHandleWaitTime, C:\Users\path\AppData\Local\Temp\tmpEXO_1inli121.xbr\tmpEXO_1inli121.xbr.psm1: line 1189
at Execute-Command, C:\Users\path\AppData\Local\Temp\tmpEXO_1inli121.xbr\tmpEXO_1inli121.xbr.psm1: line 1543
at script:Get-ATPProtectionPolicyRule, C:\Users\path\AppData\Local\Temp\tmpEXO_1inli121.xbr\tmpEXO_1inli121.xbr.psm1: line 7907
at TryCommand, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Providers\ProviderHelpers\CommandTracker.psm1: line 23
at TryCommand, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Providers\ProviderHelpers\CommandTracker.psm1: line 44
at Export-DefenderProvider, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Providers\ExportDefenderProvider.psm1: line 64
at Invoke-ProviderList, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1: line 623
at Invoke-SCuBA, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1: line 403
at , : line 1
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 2.
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 2.
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 2.
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 2.
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 2.
WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 5.
Exception: Fatal Error involving the Report Creation. Ending ScubaGear execution. Error: Cannot validate argument on parameter 'Config'. The argument
is null or empty. Provide an argument that is not null or empty, and then try the command again. at New-Report, C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\CreateReport\CreateReport.psm1: line 109 at Invoke-ReportCreation,
C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1: line 1277 at Invoke-SCuBA,
C:\Users\path\morepath\Documents\PowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1: line 440 at , <No
Steps to reproduce
Invoke-SCuBA -ProductNames *
Expected behavior
That I will receive a report for the testing
Output from Initialize-SCuBA (optional)
There is no output as it errors on the report writing stage
The text was updated successfully, but these errors were encountered: