failed attempts counter
Posted: Tue Mar 18, 2025 12:14 pm
Hello,
I use Enfocus Switch to send files to an SFTP server.
Sometimes the copy on the server fails and the flow keeps the job for a few seconds and retries the copy, in a loop.
I would like to add a counter that exits the loop after n attempts.
I know how to create a ‘SFTPFailed = 1’ PrivateData with a script when there is a failure so i can exit the loop easyly, but I don't know how to increment the variable by 1 to count the number of attempts and exit after n attempts.
How would you create this counter in the flow? I'm not expert at all in Switch scripter...
Thank you for your help
AF
I use Enfocus Switch to send files to an SFTP server.
Sometimes the copy on the server fails and the flow keeps the job for a few seconds and retries the copy, in a loop.
I would like to add a counter that exits the loop after n attempts.
I know how to create a ‘SFTPFailed = 1’ PrivateData with a script when there is a failure so i can exit the loop easyly, but I don't know how to increment the variable by 1 to count the number of attempts and exit after n attempts.
How would you create this counter in the flow? I'm not expert at all in Switch scripter...
Thank you for your help
AF