Skip to main content
Inspiring
April 20, 2011
Question

CFFTP putfile error

  • April 20, 2011
  • 1 reply
  • 1520 views

Hi, I'm trying to use cfftp to put a file on our vendor's server.  I have the correct username/pasword -- I've access the site and put the file from command line and filezilla using the same credentials.  The file I'm trying to put does exist -- I've got a "cfif FileExists(ourfile) is "Yes"" before the cfftp command.  I can do a dir listing of the ftp site successfully.  but when I try a putfile command, I get

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

Any suggestions on what else I need to check?   I've tried adding a dummy connection name, transfermode, and port, but none made any difference.  I'm stuck.  I'm hoping someone is going to look at my code and immediately say "hey stupid, fix this..." and I can go on my merry way... Thanks.

<cfftp
username = "*****"
password = "*****"
server = "*****"
action = "putFile"
localFile = "#ourfile#"
remoteFile = "ONYXhrms.txt"
>

    This topic has been closed for replies.

    1 reply

    Inspiring
    April 20, 2011

    It's not an FTP error, it's a logic error. One of the variables you're using doesn't contain what you think it contains. Check their values.

    --

    Adam

    kiyomiAuthor
    Inspiring
    April 20, 2011

    Sorry, I left out that variable:

    <cfset ourfile = "e:\Inetpub\wwwroot\processLMS\outgoing\ONYXhrms.txt">

    Is that not correct?  I've verified that file exists.

    Inspiring
    April 21, 2011

    And the error message singles out the CFFTP call as being the line of code that causes this error?

    What's the exact error message (copy and pasted form the screen), including the to dozen or so lines of the stack trace?

    --

    Adam