I'm seeing some strange behavior with the rename file task. I have a job running every 10 minutes that downloads a pgp encrypted file from an FTP site, decrypts it, and renames it. This morning I was reviewing the logs from this past weekend and saw a bunch of errors regarding the rename file portion of the task. For example:
10/26/2008 6:20:41 PM Err Rename files failed with error: Cannot create a file when that file already exists.
10/26/2008 6:30:40 PM Err Rename files failed with error: Cannot create a file when that file already exists.
10/26/2008 6:50:40 PM Err Rename files failed with error: Cannot create a file when that file already exists.
There was not an error at 6:40 PM that same day. When I look in the archive folder I see a pgp file with a date/time stamp of 10/26/2008 6:40 PM so I believe I have the task set up correctly. Here are the file names:
send_accounts_{DATEFORMAT(yyyy_MM_dd)}.tsv.pgp
is being renamed to
send_accounts_{DATEFORMAT(yyyy_MM_dd_hhmmss)}.tsv.pgp
I have a file condition attached to the rename task that looks for the file "send_accounts_{DATEFORMAT(yyyy_MM_dd)}.tsv.pgp" and I see a match in the log. Here is the portion of the log for the job:
10/26/2008 6:50:30 PM Info Job started: Clockwork Results Import
10/26/2008 6:50:30 PM Info Task started: Get file from clockwork
10/26/2008 6:50:40 PM Info Task completed: Get file from clockwork
10/26/2008 6:50:40 PM Debug Running Condition Set: 'Clockwork "send" import file exists' for Task: Decrypt Clockwork file
10/26/2008 6:50:40 PM Debug File Condition (FileExist->MatchTrue) returned: Match
10/26/2008 6:50:40 PM Debug Condition Set (Task) returned: MatchAll-> ActionContinue
10/26/2008 6:50:40 PM Info Task started: Decrypt Clockwork file
10/26/2008 6:50:40 PM Info Task completed: Decrypt Clockwork file
10/26/2008 6:50:40 PM Debug Running Condition Set: 'Clockwork "send" import file exists' for Task: Rename PGP file
10/26/2008 6:50:40 PM Debug File Condition (FileExist->MatchTrue) returned: Match
10/26/2008 6:50:40 PM Debug Condition Set (Task) returned: MatchAll-> ActionContinue
10/26/2008 6:50:40 PM Info Task started: Rename PGP file
10/26/2008 6:50:40 PM Err Rename files failed with error: Cannot create a file when that file already exists.
10/26/2008 6:50:40 PM Info Task completed: Rename PGP file
10/26/2008 6:50:40 PM Info Job completed: Clockwork Results Import
Is it possible there is a file locking condition that is preventing VisualCron from renaming it? Since I am adding hours, minutes and seconds to the file name I never would have expected to see a "file already exists" message. This is confusing! Anyone have any suggestions or tips for me to try?
Thank you!
-Peter