List variable type - Data Manipulation Practice 1 Sort and Print the List

When creating the initial list variable, I am unable to select System.Collections.Generic List<>. It gives error

Another post said to use Object type, so I tried that and got error

Object’ does not have a public instance method named ‘Sort’ matching the parameter types, generic type arguments, and generic type constraints supplied to InvokeMethod ‘Invoke Method’.

Am I missing some package from UIPath that I cannot create a List variable?

Hi @Krista

Welcome to the UiPath Community.

What does the list contain ?
Names, numbers ?

Strings. The activity says to initialize the list as
new List(of String) from {“Germany”, “Spain”, “Japan”, “Brazil”, “India”, “China”}

Yes. Select


How? When I try to select List of Things, I get error that Generic types cannot be resolved.

Please select the type here

Thank You!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.