When things don't work right, we like to say, "It's always something stupid." 95% of the time that's exactly right. Case in point: We have a workflow task that tries to check whether a folder has a particular template. Time after time, it fails, even though it looks right:
A real head scratcher. Checking the condition next:
Do you see it? Pausing...
Yes, that is an untrimmed space behind the value. Seriously? I said to myself, "You have got to be kidding me!"
Hopefully this saves you a good deal of time and frustration.