"Add to collection" is replacing objects instead of adding

This behaviour happens when I use the “clear collection” and “clear dictionary” activity on the arrays that feed the final list (after adding the completed dictionary to the final list). Once the testcase has been added to the list, whatever I do with the original containers should not matter but it does.

So here’s how I solved it. Instead of using the “clear collection / dictionary” activity, I re-instantiated all objects with assign → new list (of String) / new dictionary (of string, list (of string)).
I don’t know if this would be an issue further down the line, so I set all objects to “Nothing” before leaving this particular flow.

I would very much like to understand why “clear collection” affected the dictionary already added to the list, so anyone who could throw some wisdom my way would be very very welcome.

Cheers
Stratum

1 Like