![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
Topic Title: File Date/time check isn't working correctly - maybe there's a better way? Topic Summary: Comparing a file last update date/time isn't working correctly Created On: 08/10/2012 09:19 AM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
||||||||||
Hi,
I need to compare the date that a file was last written to against a threshold date. A job runs 4 times a day and if it has an issue with retrieving files, it updates a statically named error report, FrmclrHs.err. The automate workflow runs after that job to compare the last update date/time against a threshold date/time and sends an email notification if the threshold isn't met. I got the notification this morning, and when I looked at the date/time of the FrmClrHs.err report, it was last updated on 8/6, so it looks like the threshold check isn't working correctly. It worked in test (of course!). Can someone take a look at my code (attached) and see what I'm doing wrong? I attached the .ampkg and a screen shot of the directory showing the last modified date/time of the FrmClrHs.err file. Thanks so much for your help! Becki
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Becki,
Step 8 appears to be missing a % at the end of the err_file_mod_time variable. This will most likely cause the If Statement to skip over its contents because it is unable to evaluate %err_file_mod_time. Please change the variable so it looks like this: %err_file_mod_time% Let me know if the problem persists.
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
That fixed it - thanks Leonard! It's easier to see those things in AML view, so I'll remember to do that. I would have expected Automate to throw a syntax error rather than just skip it though
thanks!
|
||||||||||
|
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.