Mysterious Form Field Truncation That Doesn't Throw Errors

Posted September 1, 2006 at 1:46 PM by Ben Nadel

Tags: ColdFusion

I don't come across this issue very often, but when a client brings it up, I know exactly what the problem is by the fact that it's so completely not obvious. Just yesterday, I had a client call up complaining that part of their massively long article was being cut off after form submission. No errors were thrown and the page processed normally, just with less data.

I encountered this for the first time maybe two years ago. It was such a pain in the butt to figure out. The problem was the Long Text Buffer Size in the ColdFusion administrator for the client Data Source. This is set as the number of characters that can be passed through ColdFusion in one textarea variable. That is the problem, but the REAL problem is that when you exceed this character limit, the server does not tell you that this is happening; it merely gives less data.



Reader Comments

Sep 2, 2006 at 10:11 PM // reply »
8 Comments

I had that exact same pain in the butt about 6 months ago when building a small app to store documents within a database. After I'd convert the whole thing to binary and base64 encode it. it would store just fine. But upon retrieving and trying to reassimilate it, SOME of the time it would fail...turned out only on the larger files that, when encoded, exceeded that admin limit. Anywho, I feel ya. It's good that you put this little tidbit out there.


Nov 3, 2008 at 4:22 PM // reply »
1 Comments

Hello - I had this exact error and have never forgotten it - the previous writer of an app was saving cfcontent af all the form HTML - when it went over the limit it displayed only half his expected data.... - a great way to learn ... The fix was turning on the CLOB & BLOB in the Database mappings ... for me anyway ... [ I hope that is what we are talking about ]


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
InVision App - Prototyping Made Beautiful With Prototyping Tools Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 21, 2012 at 1:58 AM
Updated: Converting A ColdFusion Query To CSV Using QueryToCSV()
Hi Ben, why do you need to have so many double quotes when adding the field and field name to the row data? ----------------------------------------- <cfset LOCAL.RowData[ LOCAL.ColumnIndex ] = ... read »
AXL
May 21, 2012 at 1:24 AM
URL Rewriting And ColdFusion's WriteToBrowser Image Functionality (CFFileServlet)
@Mounir, Open your lower case URL Rewrite rule and add the following condition. Condition input: {REQUEST_URI} Check if input string: Does Not Match the Pattern Pattern: ^/CFFileServlet/_cf_ca ... read »
May 20, 2012 at 4:28 AM
Understanding The Complex And Circular Relationships Between Objects In JavaScript
@Will Vaughn I tried your javascript example but got this error:- foo.print is not a function ... read »
May 19, 2012 at 5:37 AM
A Graphical Explanation Of Javascript Closures In A jQuery Context
Thanks for this article, but I fear you missed an important point. If variables in the outer context change, these changes affect the inner anonymous functions as well. That means: if you change the ... read »
May 18, 2012 at 3:39 PM
Parsing CSV Data With An Input Stream And A Finite State Machine
Can you use file upload button with this? and read live? or does the file have to already be on the server saved? ... read »
May 18, 2012 at 1:06 AM
VIRGO (Aug. 23-Sept. 22): Dead On The Money!
A friend of mine and I were arguing about astrology and she told me that he believes in astrology. She hasn't provided me with any evidence that the belief makes any sense to me. She she been telling ... read »
May 17, 2012 at 11:32 PM
Using ColdFusion to Handle 404 Errors (Page Not Found) On Development Server
Very easy the configuration. I read a lot pages and I can't find the solution. I open the administrator and change this Administrator/server settings/Error Handlers/Missing Template Handler and p ... read »
May 17, 2012 at 3:13 PM
LOCAL Variables Scope Conflicts With ColdFusion Query of Queries
I never cease to be amazed that almost EVERY random CF issue I come across lands me on your site. Thank you for documenting your findings for the world. ... read »