Hi Shailesh, There was a ticket created for the same issue and it was solved. Refer: https://issues.apache.org/jira/browse/CAMEL-2879
Comments there will help you resolve your issue. Cheers! madhav shailesh wrote: > > I see the when split fails because of the XPathExpressionException error > the file keep trying in Loop. > I would like to move the file to /failed folder if the spliting fails. > > > > XPathBuilder xPathBuilder = XPathBuilder.xpath("/foo") > > from("file://c:/target/inventory/inbox2?moveFailed=/failed") > .split(xPathBuilder) > .to("jms:testQ1"); > > > Any suggestion. > > > Thanks, > -- View this message in context: http://camel.465427.n5.nabble.com/file-processing-loop-on-failure-tp4377043p4377250.html Sent from the Camel - Users mailing list archive at Nabble.com.