I have noticed that workflow loop is getting executed even if there is no input to it. My use case is to get active accounts for inactive identities and disable them if there is any. Most of the time search query returns zero identities but loop still gets executed once with empty array.
Output of http request above workflow has empty array in body:
on top of this I have found loop to be showing all execution as successful even if there are steps where it ends in “End Step - Failure”. Loop execution in testing never shows anything in that red number apart from zero.
Thank you for bringing this to our attention Chirag. Just to be clear, is this a good summary of your observations and expectations?
The loop operator is executing once when it is provided an empty array. The expectation is that is shouldn’t run at all and skip past the loop.
If a loop iteration encounters an “End Step - Failure” operator, it shows as a successfully completed iteration. The expectation is that it will show as a failed iteration.