Unable to solve the error


RPA developers help me to solve the problem, in the updated version

Hi @Manimekala_B_Computer_Sci
Welcome to the Community,

This error happens because IEnumerable<T> is an open generic type — the browser can’t resolve what T should be,

You must choose a closed generic type
For example:

  • System.Collections.Generic.IEnumerable<System.String>
  • System.Collections.Generic.List<System.Int32>
  • System.Collections.Generic.Dictionary<System.String, MyClass>

For Reference:
Not all generic types could be solved error is thrown when selecting variable type = System.Collections.Generic.IEnumerable<T> ?

Cannot use any System.Collections.Generic type on the list - Not All Generic Types Could Be Resolved ?

If its helpful please mark as solution and let me know if you still persist issue.
Thanks & Happy Automation with UiPath.

@Manimekala_B_Computer_Sci

Welcome to the community

Select what type of enumerable is needed..for example string or integer etc

In the dropdown below select a datatype and then click ok

Cheers

Hi @nishiijain2000

You can’t select IEnumerable directly because T is not defined. UiPath needs a concrete type.

Use a specific type instead, for example:

  • IEnumerable(Of String)
  • IEnumerable(Of Int32)
  • or simply List(Of String) (recommended)

IEnumerable alone is incomplete, so UiPath throws the error.

Hi @Monali_Vekariya

Thanks for the clarification. We’re actually saying the same thing — IEnumerable by itself is an open generic type where T is not defined, so UiPath requires a concrete/closed generic type such as IEnumerable(Of String) or List(Of String) which I mentioning above.

Thanks