Retry Scope with File Exists

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

Hi

Hope the below steps would help you resolve this

  1. Install workflow manager package in your studio → design tab → manage packages

  2. Under that you can find two activities like this
    image

  3. Now use a File exists activity where pass the filepath and get the output as a boolean variable named bool_fileexists

  4. 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:

image

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:

image

1 Like

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.

image

1 Like

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 :+1:

newer UiPath.System.Activities are returning a boolean output, so it is accepted:
grafik

older ones havent it:
grafik

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