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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Display error if tFilterRow results == 0

I have a job in which I use a rowFilter based on a condition. It works. But, what I want to do more is to display an error or stop the job if the number of filtered rows is 0. How can I achieve that?

This is my job:

 

0683p000009Lzcq.jpg

 

Does anyone could help me?

Thank you in advance.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I solved it! I linked tFilterRow > run if > tDie


@Emanuele89 wrote:

I put tSetGlobalVariable after tFilterRow_1. In Value I wrote ((integer)globalMpa.get("tFilterRow_1_NB_LINE_OK")).intValue(), but how can I stop the job if the result is 0? I need to catch it.


@TRF wrote:
Check for tFilterRow_1_NB_LINE_OK global variable after the component (change 1 to reflect the real number for your component).

 


 

View solution in original post

5 Replies
TRF
Champion II
Champion II

Check for tFilterRow_1_NB_LINE_OK global variable after the component (change 1 to reflect the real number for your component).
Anonymous
Not applicable
Author

I put tSetGlobalVariable after tFilterRow_1. In Value I wrote ((integer)globalMpa.get("tFilterRow_1_NB_LINE_OK")).intValue(), but how can I stop the job if the result is 0? I need to catch it.


@TRF wrote:
Check for tFilterRow_1_NB_LINE_OK global variable after the component (change 1 to reflect the real number for your component).

 

Anonymous
Not applicable
Author

hi Emanuele89,

You could use the Run if Trigger and give the condition as ((Integer)globalMap.get("tFilterRow_1_NB_LINE"))>0 condition followed by the logic you want to incorporate

0683p000009LzOC.jpg

 

Thanks,

RekhaSree

 

 

.

 

 

Anonymous
Not applicable
Author

I solved it! I linked tFilterRow > run if > tDie


@Emanuele89 wrote:

I put tSetGlobalVariable after tFilterRow_1. In Value I wrote ((integer)globalMpa.get("tFilterRow_1_NB_LINE_OK")).intValue(), but how can I stop the job if the result is 0? I need to catch it.


@TRF wrote:
Check for tFilterRow_1_NB_LINE_OK global variable after the component (change 1 to reflect the real number for your component).

 


 

TRF
Champion II
Champion II

Great!
Don't forget to mark your case as solved (Kudo also accepted).