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

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 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

225

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
Guide ,
Nov 13, 2014 Nov 13, 2014

Copy link to clipboard

Copied

LATEST

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.

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