Re: CFFTP Connection Error
What I discovered is that your FTP get/put file has this attribute: STOPONERROR = No And the file you try to get/put is actually not there but since you set not to stop on error, CF keep going. And too many file not found error kills cfftp and resulting this error. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325995 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFFTP Connection Error
Out of the blue a week ago, a page that I have been using for years started giving me this error message. Invalid connection specified. The connection attribute you specified, getFileNames, is invalid or does not exist Nothing has change in the code. It will grab one file and then throw the error. Is it possible that the connection is timing out? CFFTP ACTION=Open SERVER = #serverIP# USERNAME = #serverUser# PASSWORD = #serverPass# STOPONERROR = Yes CONNECTION = FileName CFFTP action=changedir directory=idx CONNECTION = FileName !--- there is a loop here to gather files --- CFFTP ACTION=GetFile LOCALFILE = #sitePath#\temp\pics-residential-#imageFile#.tar REMOTEFILE = pics-residential-#imageFile#.tar PASSIVE = yes STOPONERROR = No TRANSFERMODE = Binary CONNECTION = FileName !--- end loop --- Thanks for any help, Doug ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236242 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFTP Connection Error
The connection value actually returns an object with the name you specify. You have called it 'filename' and I'm guessing that you also have a query called 'getFileNames' with a column of filename. I think the two variables are then getting confused - I would just rename the connection to something more meaningful like 'myConnection'. HTH On 3/27/06, Doug Bedient [EMAIL PROTECTED] wrote: Out of the blue a week ago, a page that I have been using for years started giving me this error message. Invalid connection specified. The connection attribute you specified, getFileNames, is invalid or does not exist Nothing has change in the code. It will grab one file and then throw the error. Is it possible that the connection is timing out? CFFTP ACTION=Open SERVER = #serverIP# USERNAME = #serverUser# PASSWORD = #serverPass# STOPONERROR = Yes CONNECTION = FileName CFFTP action=changedir directory=idx CONNECTION = FileName !--- there is a loop here to gather files --- CFFTP ACTION=GetFile LOCALFILE = #sitePath#\temp\pics-residential-#imageFile#.tar REMOTEFILE = pics-residential-#imageFile#.tar PASSIVE = yes STOPONERROR = No TRANSFERMODE = Binary CONNECTION = FileName !--- end loop --- Thanks for any help, Doug ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236243 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFTP Connection Error
Sorry. I had actually changed the name to see if it didn't like my connection name fileName with the error I posted. All the connection names are the same. I added a timeout of 500 to the connection and it did not help. The connection value actually returns an object with the name you specify. You have called it 'filename' and I'm guessing that you also have a query called 'getFileNames' with a column of filename. I think the two variables are then getting confused - I would just rename the connection to something more meaningful like 'myConnection'. HTH On 3/27/06, Doug Bedient [EMAIL PROTECTED] wrote: ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236252 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFTP Connection Error
Doug, maybe you've already done this little check, but can you use the same ftp settings outside of cfftp (like in Leech or some other ftp utility) and successfully make the connection? Sorry. I had actually changed the name to see if it didn't like my connection name fileName with the error I posted. All the connection names are the same. I added a timeout of 500 to the connection and it did not help. The connection value actually returns an object with the name you specify. You have called it 'filename' and I'm guessing that you also have a query called 'getFileNames' with a column of filename. I think the two variables are then getting confused - I would just rename the connection to something more meaningful like 'myConnection'. HTH On 3/27/06, Doug Bedient [EMAIL PROTECTED] wrote: ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236260 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFFTP Connection Error
h... does getFileNames mean something in your code? I still suspect that could be the key to the error. but on the other hand could be a change on the ftp server you are connecting to as Doug suggests. On 3/27/06, Doug Bedient [EMAIL PROTECTED] wrote: Sorry. I had actually changed the name to see if it didn't like my connection name fileName with the error I posted. All the connection names are the same. I added a timeout of 500 to the connection and it did not help. The connection value actually returns an object with the name you specify. You have called it 'filename' and I'm guessing that you also have a query called 'getFileNames' with a column of filename. I think the two variables are then getting confused - I would just rename the connection to something more meaningful like 'myConnection'. HTH On 3/27/06, Doug Bedient [EMAIL PROTECTED] wrote: ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236269 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54