Apache Camel route: onCompletion not reached when exception occurs?
<p>I have a Camel route that looks something like the one below.  If all records parse successfully, then I get an email from the onCompletion  step.  If one record gets an exception then the rest of the records will process, which is fine, but  the onCompletion step does not fire.  </p>

<p>What I'd like is for the onCompletion  step to run even if there are errors and to be able to send a message saying "route completed with errors".  How can I do this?</p>

<pre><code>        &lt;route id="route1"&gt;
            &lt;from uri="file://C:/TEMP/load?noop=true&amp;amp;idempotentRepository=#sysoutStore&amp;amp;sorter=#externalDataFilesSorter"/&gt;
            &lt;choice&gt;
                &lt;when&gt;
                    &lt;simple&gt;${file:name} regex '*file.*.(txt)'&lt;/simple&gt;
                    &lt;to uri="direct:RouteFile" /&gt;
               &lt;/when&gt;
            &lt;/choice&gt;      
        &lt;/route&gt;

        &lt;route id="testRouteDirect"&gt;
            &lt;from uri="direct:RouteFile" /&gt;
                &lt;onException&gt;
                    &lt;exception&gt;java.lang.IllegalArgumentException&lt;/exception&gt;
                    &lt;redeliveryPolicy maximumRedeliveries="1" /&gt;
                    &lt;handled&gt;
                        &lt;constant&gt;true&lt;/constant&gt;
                     &lt;/handled&gt;
                    &lt;to uri="log:java.lang.IllegalArgumentException"&gt;&lt;/to&gt;
                &lt;/onException&gt; 
                &lt;onException&gt;
                    &lt;exception&gt;java.text.ParseException&lt;/exception&gt;
                    &lt;redeliveryPolicy maximumRedeliveries="1" /&gt;
                    &lt;handled&gt;
                        &lt;constant&gt;true&lt;/constant&gt;
                     &lt;/handled&gt;
                    &lt;to uri="log:java.text.ParseException"&gt;&lt;/to&gt;
                &lt;/onException&gt; 
                &lt;split parallelProcessing="false" strategyRef="exchangePropertiesAggregatorStrategy" &gt;
                    &lt;tokenize token="\r\n"/&gt;
                    &lt;to uri="log:Record"&gt;&lt;/to&gt;
                &lt;/split&gt;
              &lt;onCompletion&gt;
                    &lt;to uri="log:completion"&gt;&lt;/to&gt; 
                    &lt;to uri="smtp://mail.com?contentType=text/html&amp;amp;to=done@test.com&amp;amp;from=route@test.com&amp;amp;subject=we're done" /&gt;
              &lt;/onCompletion&gt;
        &lt;/route&gt;
</code></pre>