If you are using the UiPath.System.Activities package 25.12.1 then there is a bug which causing this behavior.
Upgrade to package version 25.12.2 and this should work.
If you are using the UiPath.System.Activities package 25.12.1 then there is a bug which causing this behavior.
Upgrade to package version 25.12.2 and this should work.