Good Oyster
Perch
I have a scheduled task set to run every morning at 6:30am (it was set up for me by tech support, if that matters). The script uses cfftp to retrieve a .txt file posted to an FTP folder on a remote server every day at 5:30am, and then it uploads the data from the .txt file to a database. I have the script set to email me confirmation when it goes through or when there is an error. The last three days it have not received any emails saying it did or did not work.
So, I ran the task "manually" and got the following error:
The filedate variable is set before this snippet of code, like so:
I haven't changed anything in my code in over 5 months, and it's been working fine. I can still ftp into the remote server and the new files are being added daily, so all the passwords, usernames, etc. are correct. I don't know where to start troubleshooting, because I don't know if it's my code, some change made at Jodohost, or something on the remote server!
If anyone can give me a clue, I sure could use it!
So, I ran the task "manually" and got the following error:
Code:
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code. Null Pointers are another name for undefined values.
The error occurred in
C:\****\*****\*****.com\***_scripts\*********_Download.cfm: line 9
7 : <!-------------------------------------------------->
8 : <cfftp
9 : action="GETFILE" server="***ftp.***.com" username="******" password="*********"
localfile="C:\******\*****\******\******.txt" remotefile="*****#filedate#.txt"
connection="***" transfermode="ASCII" failifexists="No" timeout="1500" passive="Yes"
stoponerror="No">
10 :
11 : <cfif #CFFTP.Succeeded# is 'Yes'>
The filedate variable is set before this snippet of code, like so:
Code:
<cfoutput>
<cfset filedate=#DateFormat(DateAdd("d", -1, Now()), "MMDDYYYY")#>
</cfoutput>
I haven't changed anything in my code in over 5 months, and it's been working fine. I can still ftp into the remote server and the new files are being added daily, so all the passwords, usernames, etc. are correct. I don't know where to start troubleshooting, because I don't know if it's my code, some change made at Jodohost, or something on the remote server!
If anyone can give me a clue, I sure could use it!