Actions are Successful, the Loop hits the limit and returns Success as all actions were successful. The limit was hit but the result is Success for the Loop.
Add loops to repeat actions - Azure Logic Apps | Microsoft Docs
Let's say you wish to change this behavior and you require the Until Loop to fail when it reaches the Loop Limit.
To let the Until Loop fail when the limit is reached; just add the below in the code behind in the JSON of the Until Loop, this option is not available in the GUI yet (at the time of writing this blog):
"operationOptions": "FailWhenLimitsReached",
"Until_2": {
"actions": {
"Execute_stored_procedure": {
………………………..
}
},
"expression": "@equals(variables('myUntilStop'), true)",
"limit": {
"count": 5,
"timeout": "PT1H"
},
"operationOptions": "FailWhenLimitsReached",
"runAfter": {
"Initialize_variable_8": [
"Succeeded"
]
},
"type": "Until"
}
and this is how to do it! As easy as that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.