The method otherwise() is undefined for the type TryDefinition

Talend Version          6.2.1

Summary

There is an issue with cMessageRouter and cTry components in the same route.
Additional Versions 6.x and above
Key words cMessageRouter, When, Otherwise
Product Talend ESB
Component  
Article Type  
Problem Description

When a route includes a cMessageRouter and cTry components, it fails to compile with the following error:

The method otherwise() is undefined for the type TryDefinition.
Problem root cause

The issue is explained from Camel's point view in the following link:

http://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html

Solution or Workaround Select the When in question and select append endChoice().
JIRA ticket number  
Version history
Revision #:
5 of 5
Last update:
‎09-05-2017 01:13 PM
Updated by:
 
Labels (2)
Contributors
Tags (1)