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.


GrahamG
2011-10-12T08:08:11Z
Dear support,

On the copy files task where it's possible to specify the "Created older than date" on the Date tab,

Entering {DATENOWADD(Days|-7|dd-MM-yyyy HH:mm)} in the field is acceptable,

however {DATENOWADD(Days|{USERVAR(ArchiveDays)}|dd-MM-yyyy HH:mm)} where the variable is set to -7, gives an error of "Field 'Older than' value is invalid date".


This same formula is working elsewhere in the task, just not in this field.


Kind Rgds


Graham
Sponsor
Forum information
Support
2011-10-12T10:14:10Z
We tested your Variable and it is working here. Not sure what the problem is. I assume it is a Variable of String type?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
GrahamG
2011-10-12T11:41:56Z
Hi Support,

No, its of type int32 and is set to -7, - it's working elsewhere in the task with the same formula.

If its of help, the prior task actaully sets it to -7.

I am using version 5.7.9

Graham






Support
2011-10-12T14:22:36Z
We tried with Integer too. Not a problem. Try recreating the Task (maybe there is some junk characters or blankspace somewhere).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
GrahamG
2011-10-12T14:43:54Z
Hi Support,

I've tried this on 2 different servers.

Am sending you the jobs and variable export by seperate email.


Graham
Support
2011-10-13T09:28:16Z
We see the problem now. Unfortunately there is no easy fix for this right now. Variables are special in that place because they really need to return a date value type - not a string. In the current implementation, mixing with other Variables, at this particular place, causes problems.

I am moving this topic to Feature requests so we can think of solutions for this in the future.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top