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.


trevinom
2012-02-01T14:28:18Z
Our process FTP's a dynamically named file from a server, so it downloads using the '*'. If, however, multiple files are downloaded, we treat it as an error and stop the job.
What would be the easiest way to implement this functionality in VC? I would like to stay away from writing process scripts.

Thank You
Sponsor
Forum information
Support
2012-02-01T14:38:05Z
I see no way of doing that. You could, after download check the downloaded files count then you could send an email or something if it is larger than X.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
trevinom
2012-02-01T15:11:38Z
I'm kinda new to VC. Would you mind elaborating on what you mean by 'check the downloaded files'?
Are you saying I should literally eyeball the folder to see how many files it downloaded? Or are you saying there is a variable I can programmatically get access to, that will tell me how many files I downloaded? You are right though, if there are multiple files downloaded, I will trigger an email to get someone to manually check the process, but I want to do automate everything up to that point.
Support
2012-02-01T15:17:22Z
Yes, there are specific FTP download Variables you can look at and use. Look at this screenshot how you locate the specific Variable(s).
Support attached the following image(s):

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
trevinom
2012-02-01T16:22:42Z
Thank you for the information.
So I set up a job to ftp 2 files from the server.
I am having it send me an email that has the variable in your list Result.NoDownloadedFiles.
I set up a subsequent step with the following condition:

Value 1 : {TASK(<ID_num>,Result.NoDownloadedFiles)}
Type : string
Condition: 'Not equal(!=)'
Value 2 : 1

The email from step 1 is showing that it is storing a value of '2' in the Result field.
So it seems there is a value in the field, but the conditioned task in not getting triggered.
What should I be using as the 'Type' for the variable and should be using any types of quotes to enclose the constant for the 'value 2' field?
trevinom
2012-02-01T17:28:03Z
I ended up writing the results.NoDownloadedFiles to a file and setting the condition in my 3rd step to check the values in the file. It seems to be working.
Support
2012-02-01T17:43:05Z
Originally Posted by: trevinom 

I ended up writing the results.NoDownloadedFiles to a file and setting the condition in my 3rd step to check the values in the file. It seems to be working.



You can use the Variable or VisualCron condition as well.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top