I'm modifying a flow we use to import 401k benefit changes from our vendor. We are changing to allow for after-tax Roth contributions on our 401k plan. The vendor is going to send us 2 lines per person on a file, one for pre-tax 401k and one for after-tax roth. These then get combined into a single benefit plan on BN32. I've been writing the flow to accumulate variables while the employee number stays the same, however, I'm having a hard time figuring out how to handle the final record. The iteration loop ends before it can realize that the next record would be the end of the file and there isn't a trailer record in the file for us. I've set it up to route back into the loop and out again before the end tag using a branch and boolean variable, but wondered if anyone had any ideas for a better way to handle.
Thanks