This is a rare problem but it has occured and the consequences are very bad.
1st case:
On press of a button a single patch must be executed. You can handle errors in multiple ways. If patch was not successfull (due to connection or other problems) - you can handle it with errors functon, or simply reattempt to patch again.
2nd case:
On press of a button two patches must be executed. If at least one fails - further actions with application will be impossible - app will misbehave. For instance first patch succeeded, and second did not, or first failed and second succeded.
Desireable outcome should be: either all patches succeed either none.
You can create a logic and run second patch only if first patch is successfull. But how to deal with situation where first succeded but second did not.
I was thinking on reattempt logic where app retries second patch on fail. But then an infinite loop is created. Loop also can be broken if user closes the app.
What is the best way to handle these type of situations?
PS: I have many cases where multiple commands must execute in a sequence (not only patch)
Solved! Go to Solution.
Hi @ArturasF ,
A conundrum for sure - the scenario requires reversing the first Patch if the second one fails. The only way to do this would be to store the "old" values in a Variable (you could do this in a record Variable) and then Patch it back if the second one fails.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @ArturasF ,
A conundrum for sure - the scenario requires reversing the first Patch if the second one fails. The only way to do this would be to store the "old" values in a Variable (you could do this in a record Variable) and then Patch it back if the second one fails.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
User | Count |
---|---|
253 | |
106 | |
88 | |
51 | |
43 |