1 Reply Latest reply on Jan 10, 2007 11:26 AM by bigbrain28

    FTP Connection

    trueman67
      I use FTP connection in a cfm page. If one CFFTP tag abort I execute a CustomTag to manage the error.
      The CFFTP tag is:
      <CFFTP action="GETFILE"
      remotefile="DATI\tabfile"
      localfile="S:\InetPub\wwwroot\ConusSpa\CONUSWEB_DEV\maxi\tabfile_new"
      STOPONERROR="no"
      failIfExists="no"
      CONNECTION="MyConnection">

      The CustomTag is:
      <cf_ErroreFTP ErrorCmd = "GETFILE"
      ErrorCode="#cfftp.ErrorCode#"
      ErrorText="#cfftp.ErrorText#"
      Server="192.168.0.237"
      U="ftpuser"
      P="ftpuser"
      tabfile="No"
      CONNECTION="MyConnection">

      The first tag in CustomTag ErroreFTP is:
      <cfftp action="close"
      server="#attributes.server#"
      stoponerror="no"
      connection="#attributes.connection#">

      I receveid this CF error:
      Invalid connection specified.
      The connection attribute you specified, MyConnection, is invalid or does not exist

      Why I receive this error? The name of connection is correct. Somebody can help me?

      Thanks