I am attempting to use Try-Catch for the first time, and I doubt I am using it correctly.
Part of a new onboarding process I am developing for Public Works requires the hiring process "pause" until a candidate signs their confirmation letter. The confirmation letter is it's own separate process that generates a signed PDF document and drops it into the repository.
What I am trying to do is tell workflow to search the specific repository for a file with the application ID, and "try" to find it.
Search Query:
({LF:Basic~="Signed Confirmation", option="LTN"}) & {[EPG]:[EPG_ApplicationID]="%(TK_ApplicationID)"} & {LF:Ext="*"} & {LF:LOOKIN="Public-Works\Business Services\Employee Onboarding\"}
If it fails to find the application (the candidate didn't sign it yet) - the error I get is "The selected entry could not be found [0587-WF1]. At this point, it should "catch" the error and run that branch right? That branch contains a delay of 1 hour, and then re-run the workflow.
If this is an inefficient way of doing this, please advise. But from what little I understand about try/catch is that I have it set to "All Errors", so the document not found should trip the catch error.
I do have the forms workflow to wait until this workflow to end before proceeding, but it just blasts on through and sends the status email even after it says it cannot find the file.
Thank you in advance.