Dashboard Error in 2.10 Nightly

Hey @adam!

A dashboard that works in 2.9.x seems to be failing to start in the latest 2.10 nightly. The log says this:

Loading module: D:\home\site\wwwroot\Modules\UniversalDashboard\3.12.0\UniversalDashboard.psd1 
Loading module: D:\home\site\wwwroot\Modules\Universal\2.10.0\Universal.psd1 
Startup:    at System.Management.Automation.CmdletParameterBinderController.ThrowAmbiguousParameterSetException(UInt32 parameterSetFlags, MergedCommandParameterMetadata bindableParameters)
   at System.Management.Automation.CmdletParameterBinderController.ValidateParameterSets(Boolean prePipelineInput, Boolean setDefault)
   at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 arguments)
   at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)
   at System.Management.Automation.CommandProcessor.BindCommandLineParameters()
   at System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)
   at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)
   at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
   at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
--- End of stack trace from previous location ---
   at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
   at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
   at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 
Startup: at New-UDDashboard, D:\home\site\wwwroot\Modules\UniversalDashboard\3.12.0\UniversalDashboard.MaterialUI.psm1: line 1408
at <ScriptBlock>, D:\home\data\PowershellUniversal\Repository\dashboards\YubiKey\YubiKey.ps1: line 1
at <ScriptBlock>, <No file>: line 1 
Startup: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided. 
D:\home\site\wwwroot\Modules\UniversalDashboard\3.12.0\UniversalDashboard.psd1 
D:\home\site\wwwroot\Modules\Universal\2.10.0\Universal.psd1 
D:\home\site\wwwroot\Modules\UniversalDashboard\3.12.0 
Creating services. 

Happy to provide the code for the dashboard itself if that helps! The first line is simply:

New-UDDashboard -Title "YubiKey" -Content {

… so I’m not sure why it’s throwing an exception saying it couldn’t determine the parameter set.

Product: PowerShell Universal
Version: 2.10.0

Is it possible that the error is actually getting thrown earlier? Like from dashboards.ps1? Here’s that file:

New-PSUDashboard -Name "YubiKey" -FilePath "dashboards\YubiKey\YubiKey.ps1" -BaseUrl "/yubikey" -Framework "UniversalDashboard:Latest" -Authenticated -Role @('Operator', 'Administrator') -SessionTimeout 0 -Description "Utilities for YubiKey management"

It has a -FilePath parameter which should be enough for PS to figure out the parameter set, right? Unless you’ve got a new parameter set for New-PSUDashboard in 2.10?

Hmm even a brand new dashboard with the default code and no authentication throws the same error.

The UI experience is that you see a React error very briefly, and then are redirected to the PSU forms login page.

Hmmmmm… I will check this out tomorrow. Sorry about that.

1 Like

This has been fixed.

1 Like