[resolved] Error Handling and Conditions in Talend

Five Stars

[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,

Accepted Solutions
Moderator

Re: [resolved] Error Handling and Conditions in Talend

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

All Replies
Moderator

Re: [resolved] Error Handling and Conditions in Talend

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: [resolved] Error Handling and Conditions in Talend

Hi Sabrina,
Runif worked for me thanks a lot Smiley Happy
Best Regards,
Pratik
Moderator

Re: [resolved] Error Handling and Conditions in Talend

Hi Pratik,
Great it can help. Can we consider this topic as resolved?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: [resolved] Error Handling and Conditions in Talend

Hi Sabrina,
Yes Sure Smiley Happy
Thanks & Regards,
Pratik

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download