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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Jesperrekuh
Specialist
Specialist

tLoop combined with tIterateToFlow using while condition results in infinite loop

First : globalMap.put("response_success", true)

tLoop with while condition:   ! ((boolean) globalMap.get("response_success"))

tIterateToFlow : sets some parameters like page_nr , to call soap , until no response, set response_success=false... and stop the loop.

 

Look at the picture. I also tried it with a context variable.

Im missing something here...  Cant get it to work with a tIterateToFlow, basicly  tLoop never checks the global var .

Please help me out on this one 0683p000009MPcz.png

 

Labels (4)
4 Replies
manodwhb
Champion II
Champion II

@Dijke, can you try with 

 

((boolean) globalMap.get("response_success"))==false

Jesperrekuh
Specialist
Specialist
Author

I've tried all variatons on true/false testing (before I've posted), tried numbers too... The problem is within the tLoop if I use i<10 it works fine... as soon as I switch to whatever global var... it is broken.
manodwhb
Champion II
Champion II

@Dijke,when you give global variable.you specify with Integer?

can you try with (Integer)global variable>10

Jesperrekuh
Specialist
Specialist
Author

@manodwhb, I already tried... I also did some code inspection to see what might be the caus

Could you plase try (or somebody at Talend?), Ive exported the TEST job!?


tLoopTEST.zip