Hi

What Camel version do you use?

And this should really work if there is an exception the file should
be moved via moveFailed. But it may be that you are handling that
exception or something so the file consumer regards the file as
processed successfully.

Take a deeper look what happens in your Camel route, and also you
would need to share more details to us before we can help more.


On Wed, May 1, 2019 at 3:42 PM Hart, James W. <[email protected]> wrote:
>
> I have a camel route that polls for files, and processes the files, and have 
> set "move" and "moveFailed" so that on success or failure the files should 
> move to their respective directories.  But no matter what all of my files go 
> to the move directory, even though in my route I process a bad file and an 
> exception is thrown during the route.
>
> Either way when a good file or a bad file is processed, both are moved to the 
> move directory.
>
> Here is the string for my from on my route:
>         
> file:///dataupload/boximetadata/csv?charset=iso-8859-1&include=.*.csv&initialDelay=0&maxMessagesPerPoll=1&move=..%5C..%5Cboximetadataarchive%5Ccsv&moveFailed=.error
>
> The exception is this from beanio:
>         org.beanio.InvalidRecordException: Invalid 'rowdata' record at line 2
>
> Am I misunderstanding this, or do I need to do different exception handling?  
> Does anybody have any ideas on why all files end up in the move directory?
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to