Append Items to Collection: Value cannot be null. (Parameter 'Collection')

Hi,

I am getting the above issue when appending the new value to the collection.


ALso how do we display the Collection in message box.

Thanks

@darshan93shastri,

Make sure your collection variable is initialized before you append any items to it and it’s not null.

Thanks,
Ashok :slight_smile:

Hi @darshan93shastri

Can you try the below

String.Join(", ",TicketContainer)

Sequence15.xaml (15.5 KB)

Regards,

From above screenshot we cannot derive all details and the overall goal. Especially the information on what is added to the list is missing.

In case that the same item is added multiple times to the list we can do it within a single assign actvitiy

grafik

myList =Enumerable.Repeat(myStringVar,UserInputVarAsInt32).ToList()

Hi @darshan93shastri,

It is throwing the error because the variable is not initialized.

In the variables pane, change the Variable Type to List<string> and Default to New List(of String).

Regards,
Ranjith Udayakumar

Thank you @lrtetala @ashokkarale @ppr @ranjith_udayakumar all these responses have been helpful…

1 Like