Skip to content

Report can't be created - Cannot validate argument on parameter 'Config' #1671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
ober758181 opened this issue Apr 15, 2025 · 2 comments
Open
1 task done
Assignees
Labels
bug This issue or pull request addresses broken functionality public-reported This issue is reported by the public users of the tool.

Comments

@ober758181
Copy link

Prerequisites

  • This issue has an informative and human-readable title.

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

@ober758181 ober758181 added the bug This issue or pull request addresses broken functionality label Apr 15, 2025
@buidav buidav added the public-reported This issue is reported by the public users of the tool. label Apr 15, 2025
@buidav buidav self-assigned this Apr 15, 2025
@buidav
Copy link
Collaborator

buidav commented Apr 15, 2025

@ober758181
Try running ScubaGear with PowerShell 5.1 rather than PowerShell 7.
Many of the underlying PowerShell modules ScubaGear relies upon still do not support PowerShell 7.
Multi-platform support #97

@mitchelbaker-cisa
Copy link
Collaborator

@ober758181 Any success getting the reports to generate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality public-reported This issue is reported by the public users of the tool.
Projects
None yet
Development

No branches or pull requests

3 participants