ISC Workflow Loop output, cannot send in failureItems list

Hello,
I am currently working on a workflow to check wether or not an access profile or role requested by a specific type of identity is in a list of sources.
I manage Access profiles on a side and Roles on another.

On the role side I check each access profile in the role via a loop that looks like this (lots of debug):

Thanks to the debug I can see that my input seems normal and there is one iteration of the loop going for failure and one ending in success.

After the loop I call for Debug again an check the loopOutput for items in the failureItems list but I find none and all my items are in the successfulItems even though I specifically had a condition to end in failure. I ha ve read the documentation multiple times but cannot decide if I misunderstood or if it is not working as expected.

Do you know if it is normal behaviour or not ?

1 Like

I can see on your photo that you have the loop listed, but you mention that you have a step after the loop to debug with. Do you have an updated image of the actual process?

When you mention that you do not see any items in the Failure side, do they not show up in either group, or do they show up in the success side instead of the failure sire? The answer to this will determine what the next step for debugging would be.

Lastly, In regards to the steps after the loop, what you are observing may be the intended behaviour. In the article you link, there are 2 paragraphs which pertain to your situation. i have quoted them here for reference:

The steps in a loop are executed on items from the input list in parallel with each other. Items are not guaranteed to be processed in any specific order.

Later actions and operators in the workflow can begin before the loop step has finished iterating over all objects in the list. However, the workflow itself can’t end until the loop has finished executing. For this reason, adding additional steps outside of the loop between the Loop operator and the end step is not recommended.

Basically, because the loop is run in parallel, there is no guarantee that the steps after the loop will have the complete data from the loop.

Hope that helps answer your question, and if not, the answers to the initial questions would be helpful to assist you further.