Matching File Names Not Working

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Matching File Names Not Working Mon Aug 25, 2014 7:25 pm • by jhnielson
I have a number of files in my system that have a standard naming structure, like this:
Customer - Document Type - Description.xxx

Real Example:
Capital - SOW - Website Design (082114).doc

I have a rule that matches on file name to extract the customer name and add a tag of the Customer Name. Here's the Rules and Actions as configured

If The Following Conditions Are Met:
If File is Document
File Matches "{Customer Name} - {...}.{...}"

Do The Following:
Add Tags: "Customer Name"


But it is not matching the files. It was matching them before. When I look in the log I see the files listed with the notes "File/folder not part of change set/file event".

Any help or ideas?
jhnielson
 
Posts: 3
Joined: Fri Aug 01, 2014 11:35 am

Re: Matching File Names Not Working Tue Aug 26, 2014 3:48 pm • by Mr_Noodle
Did you check the preview? I suggest looking there first. Also, in your rule, you use "File" so I'm not sure what it is but I'm guessing in the first instance, you mean "Kind" and the second one, you could be using either "Name" or "Full name". In your case, I suggest "Full name" since your patterns seems to include the extension.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Matching File Names Not Working Fri Aug 29, 2014 2:52 pm • by jhnielson
Ok, so I dug further and here is what I have identified:

The full rule criteria is:

    Criteria:
  • Names matches "{Customer Name} - {...}"
    *Customer name is a token defined as: "ab12"
  • Name does not start with "SOW"
  • Name contains "SOW"

    Actions:
  • Add Tags "#{Customer Name}"
  • Add Tags "#SOW"



I looked at a few different files in the folder to try and see more details and found some (seemingly) anomalies:
  • "Universal - Website SOW (UNI.SOW.001).docm" -- This one shows up as matching the rule in the Preview
  • "Capital - System Design and Implementation SOW (CAP.SOW.001).docx" -- This one does NOT show up as matching any rules in the Preview
\

I turned on the debugging log and looked in the log. I found the non-matching file listed with this info:
2014-08-29 12:43:20.586 hazelworker[1100] DEBUG: Skipped /Users/XXX/Documents/Work/Clients/Capital - System Design and Implementation SOW (CAP.SOW.001).docx. File/folder not part of change set/file event.

Any ideas? Thoughts?
Appreciate any help in advance!
jhnielson
 
Posts: 3
Joined: Fri Aug 01, 2014 11:35 am

Re: Matching File Names Not Working Tue Sep 02, 2014 2:20 pm • by Mr_Noodle
It seems you are emailing me while posting. Please keep it to one place or the other otherwise I end up having to type things out twice. For now, let's keep it to email.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Matching File Names Not Working Wed Sep 03, 2014 4:06 pm • by jhnielson
Thanks for the help - I didn't realize they both went to the same place.
jhnielson
 
Posts: 3
Joined: Fri Aug 01, 2014 11:35 am


Return to Support