Hi, I am fighting with this one error that I can seem to figure out with New-UDGrid. This was working in UniversalDashboard but i have not been able to get this to work in PU. This code snippet below is outside of the New-UDDashboard. The $CacheDatalist is properly populated and verified in regular powershell.
the error shown below happens on line 186 which is the $gridapp = New-UDGrid
what am i missing here? Am I using a different definition of New-UDGrid?
------- Code snippet --------
$CacheDatalist = [System.Collections.Generic.List[pscustomobject]]::new()
.
. populate $CacheDatalist (verified in powershell to have the correct data)
.
.
$gridapp = New-UDGrid -Id 'gridapp' -Title "Release Information" -PageSize 30 -Headers @('ApplicationName', 'CI', 'QA', 'RC', 'HF', 'QC', 'BETA', 'BLUE', 'GREEN') -Properties @('ApplicationName', 'CI', 'QA', 'RC', 'HF', 'QC', 'BETA', 'BLUE', 'GREEN') -Endpoint {
$CacheDatalist | Where-Object -Property 'Type' -EQ "Application" | Out-UDGridData
}
------ Error in logs ------
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: 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.
Startup: at <ScriptBlock>, C:\ProgramData\UniversalAutomation\Repository\dashboards\version\version.ps1: line 186
at <ScriptBlock>, <No file>: line 1