Need some help. I have captured a Value '5319888016001723 and I segregated them and assigned them to a variable.
Now I want to use a branch code in my condition. In the condition, I wrote branchcode = “777” then it will go to the True or Then.
Now, what is happening even if the branch code is 888 it still goes to the Then/True branch. Is it because I need to set the value to an integer although my branchcode is a String?
Can you check value of Disregard_Direction?
Please see below details. Let me know if you need additional information
Thank you for sharing.
Your condition is Branchcode is “777” OR Disregard_Direction is “Yes”. So, if Disregard_Direction is “Yes”, “IF activity” always branch to True. (It doesn’t matter what the branch code is)
Not sure why the Disregard_Direction = “Yes” is the condition it checks. Although in my log it shows that Disregards_Direction was not set to YES.
To isolate cause of the problem, can you try the following steps?
- Set Breakpoint at the IF activity ( Focus the activity and press F9 or click Breakpoints icon in Ribbon menu - DEBUG)
- Run as Debug. Then, Robot will stop at the activity.
- Check value of Branchcode and Disregard_Direction at Local panel.
rigth now my RPA is running and what I did is remove the other IF condition and left the Branchcode = “777” so far it is still running. I will tell you the result. I think it went through but i need to check the report if it really does.
I believe it went through by removing the Disregard_Direction = “Yes”.
Right now I added it back and added breakpoint and will do a debug run now
Hmm… From the image, it should go through False side…
Can you check robot step into True side, if you press F11 2 or 3 times at the breakpoint?