Highlighted

Getting "cfhttp.fileContent has length of -1"

Community Beginner ,
Apr 15, 2015

Copy link to clipboard

Copied

Have a CF template that uses the cfhttp command to execute a template that extracts and formats data from the database.  When using the cffile command to write that information to a file:

<cffile action="WRITE" file="#pdffolder##getpdfid2.pdfid##client.account#letter.html" output="#cfhttp.filecontent#" mode="644">

the execution receives the message"

"cfhttp.fileContent has length of -1"

Trying to figure out how to determine the cause of this issue,

Regards

Weldon Moore

Views

218

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

Getting "cfhttp.fileContent has length of -1"

Community Beginner ,
Apr 15, 2015

Copy link to clipboard

Copied

Have a CF template that uses the cfhttp command to execute a template that extracts and formats data from the database.  When using the cffile command to write that information to a file:

<cffile action="WRITE" file="#pdffolder##getpdfid2.pdfid##client.account#letter.html" output="#cfhttp.filecontent#" mode="644">

the execution receives the message"

"cfhttp.fileContent has length of -1"

Trying to figure out how to determine the cause of this issue,

Regards

Weldon Moore

Views

219

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
Apr 15, 2015 0
Engaged ,
Apr 15, 2015

Copy link to clipboard

Copied

First step to do is dump out the #cfhttp.fileContent# to see what is actually being retrieved.

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...
Apr 15, 2015 0
Advocate ,
Apr 15, 2015

Copy link to clipboard

Copied

I would go one up, dump out the contents of cfhttp. Most likely you're receiving some sort of connection error.

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...
Apr 15, 2015 0