Trying to understand flow, for the not happy path

What are you trying to achieve?

I am making use of the module “DataStore: Get a record” and want the whole scenario to just exit if no results, it is down stream from an iterator, but want it to fail if any results are not found.

Steps taken so far

I don’t see a way to make it throw and exception so went with a router and a filter after my module looking for a value from the record >0 do continue else fallback. But whatever I seem to add to the filter it still processes further down my branch.

Are the values in your data store true numeric values or strings?

They are actually Number fields within collections.

Hmm. Check the output bundle from the Data Store and share it here…

When you have an aggregater a scenario will continue on after the aggregator regardless if there are any bundles found or not. To stop the flow you need to add a filter after the aggregator.

Yeah, you are correct. Never understood that the iterator and the aggregator were separately threaded. Once it goes back to the main routine that’s where i need to add my filter.