2026.3.3 Running script causes issue with [string[]] type input when switching from Parameters to Action Preferences
Example Script:
param( [string[]] $MultiStringInput )
Reproduce Bug:
Error Message:
An item with the same key has already been added. Key: examplevalue at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at AntDesign.Select`2.CreateDeleteSelectOptions() at AntDesign.Select`2.OnParametersSetAsync() at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
Hello @realslacker
Thank you for reporting this issue and for providing clear reproduction steps.
The error appears to occur when returning to the Parameters tab after switching to Action Preferences with a `[string[]]` parameter.
I’ll work on reproducing this behavior in PSU 2026.3.3 using your example and check whether it also occurs in an earlier version.
I’ll share my findings here once the testing is complete.
Best regards,
Ruben Tapia
Hello @realslacker
Thank you for your patience.
I was able to reproduce the reported behavior in PSU 2026.3.3 and confirmed that the same exception also occurs in 2026.3.2.
Additional testing confirmed that the issue occurs when a `[string[]]` parameter contains a value and the user switches between the Parameters and Action Preferences tabs. The behavior was reproduced consistently across multiple attempts.
Based on these findings, I'll proceed with an internal escalation for further investigation.
I'll share any relevant updates here as they become available.
Best regards,
Ruben Tapia