I am trying to gather counts at a batch level, but I am having a hard time doing so. I am able to use the Record Count functoid without problem to generate file level counts, but if my inbound file contains multiple batches I cannot find a way to reset the record counts in order to keep them accurate throughout the transaction. Below is an example of what I am running into:
Inbound File
Batch 1 (contains 4 records counted)
Batch 2 (contains 5 records counted)
Outbound File
Batch 1 – count 4
Batch 2 – count 9 (expected to be 5, but all instances up to this point are counted)