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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

issue with tFlowtoiterate with if run condition

hey, i am new with talend. recently i m working with tflowtoiterate component, what i m doing is 
tFileInputDelimited --> tflowtoiterate -run if -> tJava
i have put a condition on if run that ((Integer)globalMap.get("row2.ID")) == 15
and when if condition met show data on console with the help of tJava but it is not working (showing false at if run)
but when i put last row id value in condition it shows true and display data too.
plz tell me where i m wrong and how to do it.

Labels (2)
4 Replies
Anonymous
Not applicable
Author

Can you be sure that the value of row2.ID is ever 15? Can you post some screen shots of your configuration? Also can you put a tLogRow before your tFlowToIterate so you can see the data?
JR1
Creator III
Creator III

Please try to put an additional "dummy" tJava component between your tFlowToIterate and tJava components (just take the default) and connect them the following way: 
tFileInputDelimited --(main)--> tFlowToIterate --(iterate)--> tJava (dummy) --(run if)--> tJava
Anonymous
Not applicable
Author

Good spot JoRoesecke I didn't notice that the iterate link was not being used. 
Anonymous
Not applicable
Author

hey thanx JoRoesecke it worked for me.