Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
EGuarato1648206044
Contributor III
Contributor III

Stop Job on no value

Hello, I want to put some restriction and stop the process in case of no value. (not null value).

So i want to check:

1) if a quey in the component t_DBInput doesn't return anything -> t_Die, else goes on.

2) if a t_FileFetch can't get the file -> t_Die else goes on.

I tried to use the t_SchemaComplianceCheck but it seems checking on Null value, not on no value at all. Or maybe the component is the right one but i'm using it in the wrong way.

Labels (2)
2 Replies
Anonymous
Not applicable

Hi

For 1), there is a global variable that counts the total number of records are returned, you can use this variable as condition, eg:

tDBInput--tJavaRow( or other components)---runIf--tDie

set the condition of runIf as:

((Integer)globalMap.get("tDBInput_1_NB_LINE"))==0

 

For 2), just check the 'die on error' box? does the component has an error if no file is fetched?

 

Regards

Shong

gjeremy1617088143

Hi, for tSchemaComplianceCheck you have an option in advanced settings of the component named Treat all empty string as NULL,

if you check this one and set a non null column then the component will reject null value and empty value for a String.