Workflow loop getting executed even with zero length input

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:

and loop still says one successful execution.

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.

@colin_mckibben FYI


This text will be hidden

Thank you for bringing this to our attention Chirag. Just to be clear, is this a good summary of your observations and expectations?

  1. 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.
  2. 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.

Your observation and expectation are correct.

I have submitted tickets to engineering. Thanks for bringing this to our attention.