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
failed attempts counter
- JimmyHartington
- Advanced member
- Posts: 419
- Joined: Tue Mar 22, 2011 7:38 am
Re: failed attempts counter
Seems like this app is for you https://www.enfocus.com/en/appstore/product/retryit
RetryIt makes it easy to set up a flow to repeat a process a user-definable number of times. When the configured count is exceeded, the job is passed to the Error connection. A user definable private data field is used to control the number of attempts and can be set to either count up or down. Use this app to build a more robust flow that includes a process that could fail such as downloading a file or information from a remote service.
Re: failed attempts counter
Whaou ! Thank you Jimmy !
Re: failed attempts counter
Hello Jeffreestar,
yes, this is exactly what i planned to do until Jimmy spoke about the "RetryIt" app.
I did not receive any training for scripting. I just know how to create a variable because i found a model.
Do you know where I can find some examples or lessons to at least be able to create this counter ?
Thank you !
yes, this is exactly what i planned to do until Jimmy spoke about the "RetryIt" app.
I did not receive any training for scripting. I just know how to create a variable because i found a model.
Do you know where I can find some examples or lessons to at least be able to create this counter ?
Thank you !