Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 08/10/2012 09:19 AM
User is offline View Users Profile Print this message

Author Icon
BeckiBloch
Journeyman (50-99)

Posts: 54
Joined: 12/30/2011

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


 Category Survey
 08/11/2012 05:45 PM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

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.




 Category Survey
AutoMate BPA Server 8 version:
Windows version:



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
 08/15/2012 09:29 AM
User is offline View Users Profile Print this message

Author Icon
BeckiBloch
Journeyman (50-99)

Posts: 54
Joined: 12/30/2011

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!

 Category Survey
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1068 guests browsing this forum, which makes a total of 1068 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog