Dear All,
I have created 2 different projects as below
1.CollectionExample.xaml - It uses “Append item to Collection” activity
2.ListExample.xaml - It uses “Append Item to List” activity
In addition, i am using a custom library to create a sample “Employee” object and add that to a temporary variable. This temporary object is than added to “collection”(Example-1) or "List(Example-2).
The “collection”(Example-1) works fine, however "List(Example-2) displays error and does not compile.
Example-1 works fine, however Example-2 displays error - “Error ERROR Validation Error Cannot implicitly convert type ‘System.Collections.Generic.List<PracticeLibrary.Employee>’ to ‘System.Collections.Generic.IList’. An explicit conversion exists (are you missing a cast?) ListExample.xaml”
Please can someone review and advise why the activity-“ListExample” is not working.
Kindly let me know in case you require any more details.
As i mentioned in previous post, the activity seems not normal. For now, can you try to upgrade UiPath.System.Activities package to 22.10.1 (or 22.4.5)?
Below is the error message while using “Append Item to List” activity
Error ERROR Validation Error Cannot implicitly convert type ‘System.Collections.Generic.List<PracticeLibrary.Employee>’ to ‘System.Collections.Generic.IList’. An explicit conversion exists (are you missing a cast?) ListExample.xaml
Btw are you aware if there is a link to uipath documents which has details of activity methods along with their “arguments and return type” datatype information.