SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Using FTPDir returning files not present

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Using FTPDir returning files not present
Author Message
davisbm49



Joined: 19 Aug 2009
Posts: 4
Country: United States

Post Using FTPDir returning files not present Reply with quote
Hi,

I am having an issue with the FTPDir command and it finding a file(ex. 081709.txt) in the "relius_dir" directory. I am certain that file no longer exist in that directory The job is scheduled at 5:50 AM and has 3 files in it. One of which is NOT the file mentioned above. However the job fails looking for a file in that directory the was present the day BEFORE but is not not there anymore. Its scheduled 5 days a week and seems to fail at least 2 times.

Whenever I do a re-run of the job it ALWAYS executes succesfully and doesn't look for that file even though the directory contents are exactly the same as the run at 5:50 AM.

Has anyone seen anything like this? Could the job be "hanging" on to the file in an old variable. If there a way to "flush" parameter or the job so to speak? Any help is appreciated...this thing is drving me nuts. Thanks!



---------------------------------------------

Error Message:

Error message reported by the 24X7 System: Download failed for "". The server has returned an extended error: 200 Type set to I.
200 PORT command successful.
550 /reliustrades/081709.txt: The system cannot find the file specified.
550 /reliustrades/081709.txt: The system cannot find the file specified.

Code:
//Pull all files in the FTP directory
FTPDir( relius_server, relius_id, relius_pw, relius_dir, relius_files )
LoopWhile( blnToken, END_LOOP )
//Identify the first token in the string list, if none, the IF will go to the NO_FILE label
GetToken( ",",relius_files, relius_single_file )
NotEqual( relius_single_file, "", blnToken )
If( blnToken, FILE, NO_FILE )
FILE:
//Loop
NO_FILE:
//End the process
Goto END_LOOP
GET_NEXT:
//Continue loop
END_LOOP:
Wed Aug 19, 2009 10:29 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
The caching occurs on the client side in Windows. Internally the WININET library called from 24x7 reads your default IE browser settings and does something to pull the data from the cache. You can do 2 things to resolve that caching issue

1. In the browser settings disable caching.
See http://support.microsoft.com/kb/271361 and http://www.ica.bc.ca/kb.php3?helpartid=7 for more info

2. Add FTPFileExists command to your script to test for the file.
Wed Aug 19, 2009 12:09 pm View user's profile Send private message
davisbm49



Joined: 19 Aug 2009
Posts: 4
Country: United States

Post Reply with quote
Thanks for the response.

I was curious if turning off caching could adversely affect other jobs/processes on that box? I know that is a pretty broad question. Have you ever seen any adverse affects by turning off caching? Anything I should be aware of if I go this route.

Thanks again for your help!
Thu Aug 20, 2009 4:06 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
It should have zero impact on other stuff and safe to turn off. This thing has been designed originally to improve experience of interactive users using IE web browser but unfortunately has wider reach because some components are shared by the system.
Thu Aug 20, 2009 4:56 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.