Remove from collection clear()

Hello @Everyone,

In the latest UiPath studio community edition, calling Remove from collection clear() does not fully clear the collection items still remain accessible. has anyone else faced this??

Thanks

Hi @MeganQ,
Welcome To UiPath,

Downgrade to stable version or reinitialize the collection of calling clear()

This is bug in the UiPath Studio.

1 Like

Hi @MeganQ

Welcome to UiPath Community

Remove from collection/clear() doesn’t fully clear items due to regression.

Hi @MeganQ
Welcome to the Community,

Instead of relying on Clear(), create a new instance of the collection.
myList = New List(Of String)
If you still face the issue then raise a UiPath support ticket this is UiPath bug.

If solution help please mark as solved
Thanks & Happy Automations

This is known issue, try to degrade to a lower version. It should work fine with stable lower versions.

Hi @MeganQ ,

I think Clear() is not the issue. The correct fix is to re-initialize the list using an Assign activity, for example yourList = New List(Of YourType), to ensure all items and references are fully reset.

Hi @MeganQ

If solution works for you please mark as solved so thread will be closed

Thanks

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