Rule suddenly not working

A rule I have successfully used for a while suddenly ceased to work. Basically, I used a rule to tag all files with the enclosing folders name. I recently noticed the rule just stopped adding the enclosing folders tag. When I test using preview, everything checks out ok. Yet the tags do not get added. I have a screenshot of the rule but do not know how to attach to this post. Thoughts?