Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


rclark
2017-08-28T18:56:23Z
copy_date_modified.png
Version 8.2.8 - maybe I'm not understanding this. Although I should only be getting files with DateModified attribute greater than Job LastExited, I am getting all files regardless of date in both Test and in run task. I only want new files. What simple thing am I missing? 😲 TIA!
Sponsor
Forum information
Kevin J Linna
2017-08-28T19:04:19Z
Just a quick thought, but I know when I do Date comparisons to filter for file type jobs, I always try to remove the hours, minutes, and Seconds....

So I have used:

{Job(Active,LastExited,M/d/yyyy)}

Instead of:

{Job(Active,LastExited,M/d/yyyy h:mm:ss.ff tt)}

Also....
When did the Job last exit? do you want to queue off task instead of Job? or maybe you need Direct ID of object to reference.
rclark
2017-09-01T21:20:22Z
Thanks, but removing the hour, minutes, and seconds did not make a difference, I'm afraid. The job last exited just a bit before and it reflected in the selection dialog box as seen in the photo attached to original post. So, it seems to know what date to use, but it doesn't!?
Support
2017-09-04T12:30:54Z
You should turn on Extended debugging in Server settings->Log. Then run it and you will see the exact date that the Variable value translates to in the log file log_serverDATE.txt. Start from there and let us know if you find anything strange.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rclark
2017-09-05T17:47:04Z
Excellent suggestion - thank you!
My problem seems to stem from an API error resulting from my (mis?)use of {JOB(Active,LastExited,M/d/yyyy h:mm:ss.ff tt)}

9/5/2017 12:27:32 PM Err API->"[Error in SetVariables, string: {JOB(Active,LastExited,M/d/yyyy h:mm:ss.ff tt)}, err: Object reference not set to an instance of an object.]"
9/5/2017 12:27:32 PM Debug DateCheck (\\cmfs01\Users\Shared\PRGTickets\720\Partner.720387622.1504274536.001.pdf), dteNewerThan: 0001-01-01 00:00:00, fi.LastWriteTime: 2017-09-01 09:14:27, fi.LastWriteTime.ToLocalTime: 2017-09-01 09:14:27
... etc.


Support
2017-09-07T20:26:43Z
Can you export this specific Job and attach it here?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rclark
2017-09-08T17:27:45Z
  date_filtered_job.zip (4kb) downloaded 47 time(s).
Job is attached, thanks.
Support
2017-09-12T16:06:41Z
I cannot directly reproduce it because the format is not the same on my computer. But when adding it again, from the Variables browser, with my format it works.

Please try this build as well as we made some minor changes:

https://www.visualcron.c....aspx?g=posts&t=7498 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top