Hi
I am trying to run the PowerApps Checker from PowerShell and am getting a error as shown below. Struggling as to where to look to troubleshoot this. Any guidance would be appreciated.
The command i am executing is (all variables assigned before this call):
$analyzeResult = Invoke-PowerAppsChecker `
-TenantId $Tenantid `
-Geography $Geography `
-ClientApplicationId $ClientApplicationId `
-ClientApplicationSecret $ClientApplicationSecret `
-Ruleset $ruleSetToUse `
-FileUnderAnalysis $FileUnderAnalysis `
-OutputDirectory $OutputDirectory `
-Verbose
The error is:
VERBOSE: TrackingId is 9d419980-bc62-4809-bc33-19ca2ba27450 VERBOSE: Entering InvokePowerAppsChecker - EndProcessing VERBOSE: Executing InvokePowerAppsChecker
VERBOSE: Upload started : 1 files
VERBOSE: Requesting Authentication - Start
VERBOSE: Requesting Authority from server - Start
VERBOSE: Requesting Authority from server - Finished : 00:00:00.0748128
VERBOSE: Requesting Authentication - Completed : 00:00:00.3220412
VERBOSE: Uploaded finished: 1 files taking 00:00:07.3402576
VERBOSE: Requesting Authentication - Start
VERBOSE: Requesting Authentication - Completed : 00:00:00.0083386
VERBOSE: Calling status check API. Loop count 1
VERBOSE: Requesting Authentication - Start
VERBOSE: Requesting Authentication - Completed : 00:00:00.0009733
VERBOSE: Finished calling status check API. Loop count 1
VERBOSE: Pausing for 15 seconds.
VERBOSE: Calling status check API. Loop count 2
VERBOSE: Requesting Authentication - Start
VERBOSE: Requesting Authentication - Completed : 00:00:00.0039218
VERBOSE: Finished calling status check API. Loop count 2
VERBOSE: Failed InvokePowerAppsChecker - EndProcessing : 00:00:22.9153801
VERBOSE:
VERBOSE: Message: Value cannot be null.
Parameter name: source
VERBOSE: Source : System.Core
Method : Select
Date : 29/03/2021
Time : 09:07:33
Error : Value cannot be null.
Parameter name: source
Stack Trace : at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
at Microsoft.PowerApps.Checker.PowerShell.Cmdlets.InvokePowerAppsChecker.EndProcessing()
================================================================================================================
======
Id Name
-- ----
083a2ef5-7e0e-4754-9d88-9455142dc08b AppSource Certification
0ad12346-e108-40b8-a956-9a8f95ea18c9 Solution Checker
0ad12346-e108-40b8-a956-9a8f95ea18c9 Solution Checker
Invoke-PowerAppsChecker : Value cannot be null.
Parameter name: source
At C:\SOURCE\Test.ps1:68 char:18
+ $analyzeResult = Invoke-PowerAppsChecker `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-PowerAppsChecker], ArgumentNullException
+ FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.PowerApps.Checker.PowerShell.Cmdlets.InvokePowerAppsChecker