put inside the for loop means not comming that if ,out side the loop means comming y?y thius like happening ?activity
Can you explain in detail, what is your requirement and what is the issue that you are facing.
Workaround
Check the variable that what you are passing in for each activity? check that data is avaialable in that variable. then after check that what your passing in the condition section.
use breakpoint at for each action and then by checking the local panel/immediate panel whether you are getting the data or not. then ensure flow is going inside of the loop.
Happy Automation
Hi @Roja_C
I need more context - but if you are speaking about your “IF Statement” activity not getting executed when inside the “For Each”, I would assume because your for each dataset is empty?
The only reason why nothing would execute inside your for each would be because the dataset that you are looping through is empty and therefore it goes to the next activity outside.
Hope I understood that correctly, but if not, then please clarify.
Thanks.
Hi @Roja_C ,
Could you please check the values entering into the for loop or not.
And please check whether the if condition is satisfying with the coming current value
Check these in debug mode by using breakpoint
Hi @Roja_C ,
From your screenshot, the If activity is visible outside the loop, but when you drag it inside, it may disappear because of one of these reasons:
- Activity not dropped inside the loop Body properly.
- Loop container may be collapsed/minimized.
- UiPath Studio UI glitch/cache issue.
- Some activity types inside loop support limited child activities.
- Sequence container missing inside loop.
Best practice:
For Each → Sequence → If
If I am not understanding the issue correctly, please clarify the exact problem you are facing with the activity inside the loop.
Thanks.
Change your system activities package version this was observed previously on few pakcage versions
cheers
Understood - Anil is correct, just upgrade your System Activities package to the latest version and restart UiPath.
Check if the issue is still occurring.
still same.i can 't able to set that activity inside the that loop…
Check the argument type of for each activity just change and re update with same value.
Delete existing activities try to re add those activities again.
Send a screenshot of the IF statement inside the loop so that I can see what you’re talking about

