Highlighted

Help!!!! I am getting a 501 Syntax Error with CFFTP ListDir. I created the file in January of 2014 and today is the first time it has failed.

New Here ,
Nov 13, 2014

Copy link to clipboard

Copied

<!---Control the timeout--->

<cfsetting requesttimeout="600">

<cfset thisDate = now()>

<cfset today = #DateFormat(thisDate,"mm-dd-yyyy")#>

<!--- Open ftp connection --->

<cfftp connection="MyFtp"

    server="#FTPserver#"

    username="#username#"

    password="#password#"

    action="Open"

    stoponerror="Yes">

   

<cfftp action="listdir"

stopOnError="Yes"

name="Files"

directory="/export400"

connection="MyFtp"

>

SyntaxError.jpg

Views

169

Likes

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

Help!!!! I am getting a 501 Syntax Error with CFFTP ListDir. I created the file in January of 2014 and today is the first time it has failed.

New Here ,
Nov 13, 2014

Copy link to clipboard

Copied

<!---Control the timeout--->

<cfsetting requesttimeout="600">

<cfset thisDate = now()>

<cfset today = #DateFormat(thisDate,"mm-dd-yyyy")#>

<!--- Open ftp connection --->

<cfftp connection="MyFtp"

    server="#FTPserver#"

    username="#username#"

    password="#password#"

    action="Open"

    stoponerror="Yes">

   

<cfftp action="listdir"

stopOnError="Yes"

name="Files"

directory="/export400"

connection="MyFtp"

>

SyntaxError.jpg

Views

170

Likes

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
Nov 13, 2014 0
Most Valuable Participant ,
Nov 13, 2014

Copy link to clipboard

Copied

Try removing the quotes from around the connection name in your CFFTP lisdir block.  So change the last line to connection=MyFtp instead of connection="MyFtp".

-Carl V.

Likes

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
Reply
Loading...
Nov 13, 2014 0