• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFFTP GetFile Error 550

New Here ,
Mar 20, 2008 Mar 20, 2008

Copy link to clipboard

Copied

Okay, so we're trying to use the CFFTP tag to get a file from a secure, remote FTP server, and copy it onto a directory in our webserver using this code:

<cfftp
action="getFile"
server="ouripaddress"
username="ourusername"
password="ourpassword"
directory = "/array1/plasma"
remotefile="remotefilename.ext"
localfile="d:/directory/subdirectory/subdirectory2/subdirectory3/ourfilename.ext"
failIfExists="no"
transfermode="auto"
passive="yes">

(we've replaced confidential information in the above code).

Now our CF template is throwing this error:

An error occurred during the FTP getFile operation.

Error: 550 Filename: No such file or directory

It's saying the error is on the line for LocalFile, but our filepath is correct.

The file does exist on the remote FTP server.

I can't seem to find anything on this on the web either.

Can anyone help?


TOPICS
Advanced techniques

Views

2.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 20, 2008 Mar 20, 2008

Copy link to clipboard

Copied

iirc, 'directory' attribute is not supported with action="getFile"...
try using cfftp with changeDir action first to change to the dir of
remotefile, and then run cfftp action='getFile' ...



Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 21, 2008 Mar 21, 2008

Copy link to clipboard

Copied

Nope, that's not it....

After opening my connection I added the line you mentioned:


<cfftp action="changeDir" connection="movefiles" directory="/array1/plasma">

and CF throws this error:

An error occurred during the FTP changeDir operation.

Error: 550 /array1/plasma: No such file or directory .



However, if I add a listdir for the same directory before the changedir line, CF processes that, so the directory is definitely there, now it's just kicking back on the actual changedir line, and of course, never makes it to the getfile command:

<cfftp action="listdir" connection="movefiles" name="dirquery" directory="/array1/Plasma">

<cfftp action="changeDir" connection="movefiles" directory="/array1/plasma">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 16, 2012 Jan 16, 2012

Copy link to clipboard

Copied

LATEST

Hi leatherjeep,

I had exactly same issue as your. I just rechecked the folder name in the remote server and someone had updated it. Once i changed that in my code everything worked smooth.

Thanks,

YA

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation