I assume you are trying to write the output to a file after merging.
The first flow after join (order 1) will push good data and create the file. The second flow also ca be transmitted to same file but in the case of second file, select the append option in enabled status. This will make sure that both good and rejected data are present in same file.
-- If you think the suggestion provided has helped you, please mark the topic as accepted solution given.