IF Workflow

Discussion created by laura_albrecht_automic on Jun 21, 2017
Latest reply on Jun 28, 2017 by Michael_Lowry
I know this is an obvious answer, but can't seem to connect the dots here, so throwing this out there for a quick assist.

I'm trying to create a IF workflow for demo purposes, etc.  All I want to do is show the basic functionality of the workflow.  If A is true - run the TRUE branch, if A is not true - run the FALSE branch.  Pretty simple.  

I selected the condition "CHECK_FILE" cause that seemed pretty simple - either the file is there or not.  If it's there - run the TRUE branch, if it's not there - run the FALSE branch.

When the file is there - it runs the TRUE branch without a problem.  But when the file is not there, the entire workflow fails.  I get this error:

U02000102 Error when calling the function 'lstat', error code '2(No such file or directory)'.

Well, of course there's no file - I thought that was the entire point.   :)

Obviously there is a setting or property I am missing here.  Or perhaps something else I need to do on the Task Properties in the CHECK FILE block.

Any assistance would be appreciated.  I know there's a trick here.   :D