The following error comes up in TestStand 2021.
|Object of type 'System.__ComObject' cannot be converted to type 'System.Collections.Generic.Dictionary|
Could you please attach a photo of the error, it will be more visual and understandable. Also, in which step you faced with this issue?
You have to convert ComObject (PropertyObject) to .NET dictionary in your C# Code itself.
Another possibility is to use a sequence with .NET adapter steps to create a dictionary from a TestStand data structure and store that in a TestStand object reference variable and pass it into the code module. The assembly that takes the generic dictionary type should have that type as one of the classes you can use in its "classes" list. You can use that to create a new instance of the dictionary and, in subsequent steps, call into the class to add values.
If you don't own the code you are calling and don't want to have to write C# code around it, it could be a good option.