Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] SchemaValidationException is undefined for the type RouteDefinition

Hi,


I am going through ESB basics (v 6_0_1 , Processing Route). I have created a route from SetHeader (with XSD validation) to cTry and in catch set 'org.apache.camel.processor.validation.SchemaValidationException.class' for 'Exceptions' and followed by other business logic. While executing the route it is throwing error 'The method doCatch(Class<SchemaValidationException>) is undefined for the type RouteDefinition'. 
Can somebody please guide regrading this issue ?

Thanks:
Sudip 
Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hello,
I've tried to create sample root with cTry and throw SchemaValidationException and then catch it it catch block and log
exception and it works ok. Can you give me a screenshot of your root? How you handle exception and where it could be thrown.
Thanks,
Ilya
Anonymous
Not applicable
Author

Hi Ilya,

Below is the snapshot of the root:



Thanks:
Sudip
0683p000009MH0z.jpg
0683p000009MH5A.jpg
Anonymous
Not applicable
Author

As I see you do not use "try" connection. I mean after cTry component you use "route",
so catch block actually appears without try, that's why you got this error.
Just change your "route10" connection to "try".
Anonymous
Not applicable
Author

Oh yes thanks for catching it.. now it compiles perfect. Thanks for your help.