Duplicate File creation

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

Moderator: Mr_Noodle

Duplicate File creation Fri Feb 03, 2017 6:50 am • by Indigosans
Hi Mr Noodle
I am having a issue with a rule duplicating files.
I have checked the rule, and also the forums to see if I could solve this. But is still causing issues that I do not understand, so hope you could help solve this with me.

If I quickly explain the workflow

I am using iOS ScanBot App to send scanned receipts file pdf ( NAME_AMOUNT ) to a ScanBot folder in iCloud.
Hazel monitoring this folder then renames with date ( DATE_NAME_AMOUNT ) and files on local drive in a specific folder / subfolder created by month.

Previously this was working all ok, as have been using the rule for a number of months, and duplicate files where not previously created, it is only occurring in the last few weeks, but I can not pin the exact date down.

The duplicated filename created is DATE_DATE_ORIIGINAL FILENAME . Where as the other file is named correctly DATE_ORIGINAL FILENAME.

After looking at the forums I added, Date added is after date last matched to the rule thinking this might stop the duplication.
What is strange is that it does not seam to be creating duplicate files in every instance.

The rule is below as well as well as the Debug Mode log file for two operations searched for under the original filename.

Thanks for Help


———————————————————

If all conditions are met

Name contains item NAME

Date added is after date last matched

———————————————————

Rename with pattern > date added ( year / month / day )_name_extension

Add tag >

Move to folder >

Sort into subfolder > Monthly_Expenses_date created ( creates a new folder every month )

———————————————————




Filename DRINK_FOOD_10.70.pdf

Log

2017-02-03 08:34:46.583 hazelworker[84669] DRINK_FOOD_10.70.pdf: Rule DRINK_FOOD matched.
2017-02-03 08:34:46.585 hazelworker[84669] [File Event] File renamed: /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/DRINK_FOOD_10.70.pdf renamed to /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_DRINK_FOOD_10.70.pdf.
2017-02-03 08:34:46.686 hazelworker[84669] [File Event] File moved: 2017-02-03_DRINK_FOOD_10.70.pdf moved from folder /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES to folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES.
2017-02-03 08:34:46.706 hazelworker[84669] [File Event] File moved into subfolder: /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES/MONTHLY_EXPENSES_February-2017/2017-02-03_DRINK_FOOD_10.70.pdf sorted from folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES to subfolder MONTHLY_EXPENSES_February-2017.
2017-02-03 08:35:02.490 hazelworker[84674] 2017-02-03_DRINK_FOOD_10.70.pdf: Rule DRINK_FOOD matched.
2017-02-03 08:35:02.492 hazelworker[84674] [File Event] File renamed: /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_DRINK_FOOD_10.70.pdf renamed to /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_2017-02-03_DRINK_FOOD_10.70.pdf.
2017-02-03 08:35:02.534 hazelworker[84674] [File Event] File moved: 2017-02-03_2017-02-03_DRINK_FOOD_10.70.pdf moved from folder /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES to folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES.
2017-02-03 08:35:02.534 hazelworker[84674] [File Event] File moved into subfolder: /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES/MONTHLY_EXPENSES_February-2017/2017-02-03_2017-02-03_DRINK_FOOD_10.70.pdf sorted from folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES to subfolder MONTHLY_EXPENSES_February-2017.




Filename GROCERIES_8.73.pdf

Log

2017-02-03 08:35:32.173 hazelworker[84678] GROCERIES_8.73.pdf: Rule GROCERIES matched.
2017-02-03 08:35:32.174 hazelworker[84678] [File Event] File renamed: /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/GROCERIES_8.73.pdf renamed to /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_GROCERIES_8.73.pdf.
2017-02-03 08:35:32.232 hazelworker[84678] [File Event] File moved: 2017-02-03_GROCERIES_8.73.pdf moved from folder /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES to folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES.
2017-02-03 08:35:32.233 hazelworker[84678] [File Event] File moved into subfolder: /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES/MONTHLY_EXPENSES_February-2017/2017-02-03_GROCERIES_8.73.pdf sorted from folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES to subfolder MONTHLY_EXPENSES_February-2017.
2017-02-03 08:35:48.433 hazelworker[84681] 2017-02-03_GROCERIES_8.73.pdf: Rule GROCERIES matched.
2017-02-03 08:35:48.435 hazelworker[84681] [File Event] File renamed: /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_GROCERIES_8.73.pdf renamed to /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_2017-02-03_GROCERIES_8.73.pdf.
2017-02-03 08:35:48.479 hazelworker[84681] [File Event] File moved: 2017-02-03_2017-02-03_GROCERIES_8.73.pdf moved from folder /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES to folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES.
2017-02-03 08:35:48.479 hazelworker[84681] [File Event] File moved into subfolder: /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES/MONTHLY_EXPENSES_February-2017/2017-02-03_2017-02-03_GROCERIES_8.73.pdf sorted from folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES to subfolder MONTHLY_EXPENSES_February-2017.

Thanks again for help
Indigosans
 
Posts: 4
Joined: Wed Jun 01, 2016 4:30 am

Re: Duplicate File creation Fri Feb 03, 2017 1:09 pm • by Mr_Noodle
I'm wondering if this is a problem with iCloud sync, where it recreates the file that was moved. I'd try it on a non-iCloud folder to see if you get the same results or not. If not, then it may be an issue with iCloud.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Duplicate File creation Mon Feb 06, 2017 5:37 am • by Indigosans
OK thanks.

I figured out why I believe the duplicates are intermittent.
I have my iMac disk set to not sleep, when I am away from it, it seams to duplicate, when I am in front of the computer it does not seam to duplicate.

I will move to Dropbox to see if that helps.
Indigosans
 
Posts: 4
Joined: Wed Jun 01, 2016 4:30 am


Return to Support