I am using UnPackContent version1.9.2
I want to drill down into a zip file and find apples.txt file. I use a filter "apples\.txt" and it works successfully when apples.txt is present somewhere in the zip file.
But when apples.txt does not exist in the zip file I get an bulletin error "because it does not appear to have any entries; routing to failure" and as indicated the flowfile is indeed routed to failure. This processor needs a 'failure' relationship.
I just want to discard the original flowfile if there is no match for the filter. How do I do that?
'Routing to failure relationship' if filter fails to match is a 'feature' of this processor. Can't do anything about it. It would be nice if they would provide a configuration switch. So I filter on everything ".*" and RouteOnAttribute for "apples.txt", "oranges.txt" etc in the next level of flow. This reduces the number of possible 'failures' although it will still fail if there are no files at all in the incoming zip.