Continue after failing ?

45 views
Skip to first unread message

nir hasan

unread,
May 11, 2022, 7:38:39 AM5/11/22
to Automate
Hi

Is that possible to put an exception - to continue if the block fails ?

For example i have created a block to upload a file via gdrive , however some time there is not internet connection and when this happen all the flow fails .
Is that possible to  do some time of exception to continue the flow ?

Henrik "The Developer" Lindqvist

unread,
May 11, 2022, 9:00:26 AM5/11/22
to Automate
Yes, using the Failure catch block.

nir hasan

unread,
May 11, 2022, 9:32:44 AM5/11/22
to automa...@googlegroups.com
How does this work actually ?
Because i couldn't make this work .

I put it like this
Flow begin > catch error "ok"  + "fail" > gdrive > toast

However after the X amount of retries that I've set in the catch error ,  where do i put the next block to continue to if its fails ?

For example if it fails after x retry continue to the next block..

--
You received this message because you are subscribed to a topic in the Google Groups "Automate" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/automate-user/bE5Yrefrel4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to automate-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/3768513f-3949-47aa-9d9f-852d01cf7a76n%40googlegroups.com.

Henrik "The Developer" Lindqvist

unread,
May 11, 2022, 9:52:01 AM5/11/22
to Automate
The FAIL path is executed whenever a block in the OK path fails.
What you put in the FAIL path is up to you, simply doing the same thing again will probably not resolve the root cause, maybe wait a until internet connectivity is restored.
After all retries have been exhausted the block will not catch any more, and the block will fail.

nir hasan

unread,
May 11, 2022, 10:04:33 AM5/11/22
to Automate
i will try to rephrase that .


when starting the flow  , i'd like for it to upload a file , if it fails for any reason after X retries i want it to continue with the flow 
how can i do that  ?


because right now , its seems that the "Failure catch" is retrying indefinitely untill the amount of retries set and when its finished it just fails .

if its not existent , maybe its worth creating a new block  with a IF statment ?  which after x mount of tries continue ..  (or maybe its possible to do that right now ? but how?)

Henrik "The Developer" Lindqvist

unread,
May 11, 2022, 11:14:06 AM5/11/22
to Automate
:
Failure catch --------+
Retry count=retry     Expression true: retry<2 --+
|                     |                          |
|                     Delay                      |
|                     or some other strategy     |
+<--------------------+                          |
|                                                |
Google Drive upload                              |
+<-----------------------------------------------+
:
Reply all
Reply to author
Forward
0 new messages