I have some validations like date format, string length and alphanumeric check that I need to apply on certain fields in multiple jobs. I don't want to use tMap filter expression for that because that will not provide me the exact reason due to which the record is rejected.
I there any way to achieve this in Talend ?
tFilterRow (with basic or advanced settings) may help for that in most cases.
You may also use tJavaRow.
In this case consider to add a field in the output flow in which you'll indicate the reject code if any.
Then you'll be able to filter (tFilterRow again) rows to be rejected.
Also, if you want to centralize the validation code, consider to use routines.
Hope this helps.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema