Hello All,
I've created a job in order to download a file from FTP server trying to use Loop function to execute a smart Polling method, where wait for the file on FTP server, download it and exit from loop in case the variavle NoDownloadedFiles or NameDownloadedFiles contain is different of 0 or blank with the following Tasks:
1) FTP Trasport task - Download a file
2) Write File task - writing Log File
3) Renaming - rename the file downloaded
Loop Start at step (1) and ends at (2)
the Loop setting as been configured as following attempts:
*First attempt
While x
While = {TASK(PrevTask,Result.NoDownloadedFiles)}
data type: String
comparison method: Equal (=)
second value: 0
Sleep/Wait each iteration = 20 sec
*Result: Loop was executed 1 time if the file to download exists or not
*Second attempt
While x
While = {TASK(PrevTask,Result.NoDownloadedFiles)}
data type: String
comparison method: Equal (=)
second value: {USERVAR(ZeroStringVariable)} >>> User variable defined as String type and fix value = 0 (value Preview is 0)
Sleep/Wait each iteration = 20 sec
*Result: as the previus job result Loop was executed 1 time if the file to download exists or not
*Third attempt (into attached log file at 26/01/2012 12.05)
While x
While = {TASK(1c246d85-af60-4eb5-8748-6f1a2efbbcbb,Result.NoDownloadedFiles)}
data type: String
comparison method: Equal (=)
second value: {USERVAR(ZeroStringVariable)} >>> User variable defined as String type and fix value = 0 (value Preview is 0)
Sleep/Wait each iteration = 20 sec
max itations: 8
*Result: Loop was executed 8 times without exit at iteration 6 where the file was downloaded, it exit from loop ta end of maximum iteractions "Maximum number of loop iterations has been met."
Maybe I make a mistake on writing using variable into this functionality, does anyone can help me with this issue
thanks a lot
Ale