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
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Jun 19, 2013 at 11:33 AM
Filter vs. ngHide With ngRepeat In AngularJS
In your assessment, is it correct to say that given a list of say 500 items its more performant to use the `ngHide` method over the `filter` method? ... read »
Jun 19, 2013 at 10:18 AM
ColdFusion Path Usage And Manipulation Overview
Anyone happen to know if the file created by getTempFile will be automatically removed at any point? Nothing mentioned in the docs, and restarting CF doesn't remove them, so it seems it needs manu ... read »
Jun 19, 2013 at 9:41 AM
Working With Inherited Collections In AngularJS
I actually just ran into this same situation with a demo I was putting together. Your implementation of multi-lvl $scope's > Mine :) ... read »
Jun 19, 2013 at 8:17 AM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
@Prateek, to match a word or text you should use .toContain('word') that's a jasmine reference. website is : http://pivotal.github.io/jasmine/ ... read »
Jun 19, 2013 at 8:10 AM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
Hi Guys, Actually i am doing e2e test of angular js of my project but i am not getting one thing that is how to press enter key through the test when my form is filled as i am not using a button but ... read »
Jun 18, 2013 at 9:20 PM
Mapping AngularJS Routes Onto URL Parameters And Client-Side Events
I couldn't find examples of passing multiple arguments using the when() routing statement so figured out through trial and error that you can pass multiple arguments using the following format: .whe ... read »
Jun 18, 2013 at 3:39 PM
Experimenting With The Amazon Simple Storage Service (S3) API Using ColdFusion
Hi Ben, THANKS! While not bleeding edge, it is new to me & I like learning new things every day! ... read »
Jun 18, 2013 at 12:30 PM
Disabling Auto-Correct And Auto-Capitalize Features On iPhone Inputs
Also spellcheck="false" should be mentioned as part of html5 specs ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools