Hi,
I wann use Retry Activity with the condition if exists a file, but in condition you can not use file exists Activity. How can i solve it?
we can throw an exception for repeating the scope with the
- Check True Acitvity
- check False Activity
https://docs.uipath.com/activities/other/latest/workflow/check-true
https://docs.uipath.com/activities/other/latest/workflow/check-false
Hi
Hope the below steps would help you resolve this
-
Install workflow manager package in your studio → design tab → manage packages
-
Under that you can find two activities like this
-
Now use a File exists activity where pass the filepath and get the output as a boolean variable named bool_fileexists
-
Use check true activity inside the condition block of RETRY SCOPE activity and pass the expression property as bool_fileexists
Cheers @Amir
You don’t need the Workflow Manager package installed separately.
It’s part of UiPath.System.Activities:
just clear few things:
- Microsoft.Workflow.Manager package is a legacy only package
the Check true (UiPath) and the isTrue (UiPath) are different and its output / behaviour
isTrue returns a Boolean, so were able to use it within the condition block
Check true can throw an exception, so we can use it withing the retry scope block
EDITED:
- Changes to observe in newer versions of the UiPath.System.Activities
The throwing of an error is optional, just leave it blank. You can use Check True in the condition block of Retry Scope:
show us validated and accepted, please mention used UiPath.System.Activities Version, since when you did use, thanks
Hi Peter,
i can not find workflow Manager Activity in packages.
I use it all the time, it’s the replacement for the Microsoft activities. It only throws an exception if the ErrorMessage property is filled in. This is the UiPath.System.Activities version.
You don’t need it. Check True and Check False are part of UiPath.System.Activities
When your project is set to Windows Compatiblity it is not offered as it is legacy only
good catch
newer UiPath.System.Activities are returning a boolean output, so it is accepted:
older ones havent it:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.