[resolved] Error Handling and Conditions in Talend
Hello,
I am new to Talend, I have a job which gives a list of holidays for different countries using an API. The job is running fine.
But I need to do some conditioning. I am using a text file to give the start date & end date. ( For eg:- Startdate will be (-1) one year before the current year i.e 2016 & enddate will be (1) the next year i.e 2018, so I get data for 3 years, 2016, 2017 & 2018.)
Startdate should always contain negative value & Enddate should be positve. I need to put a condition for this, I want a popup message box which says the values entered are incorrect if someone enters a positive value in Startdate or ViceVersa. I can't use tMsgBox with OnComponentError from Component tFileInputProperties_1 as I am not getting any error when I use incorrect values. Please suggest if there is any other solution.
Thanks & Regards,
Hi, Have you tried to use "RunIf" connector in your work flow? Which triggers a subjob or component in case the condition defined is met. Could you please take a look at document about:TalendHelpCenter:RunIf Connection Settings? Best regards Sabrina
Hi, Have you tried to use "RunIf" connector in your work flow? Which triggers a subjob or component in case the condition defined is met. Could you please take a look at document about:TalendHelpCenter:RunIf Connection Settings? Best regards Sabrina