ERROR: Field 'exams' is too long

rdh61 wrote on Thursday, November 01, 2012:

Hi,

OpenEMR v4.1.0.

In the history form, the data I need to put in is too much for the allowed field size. I get the following error:

ERROR: Field ‘exams’ is too long:

phy:0:|xr:2:# Lsp 020707: Moderately severe Lt convex scoliosis. L5S1 space a little reduced. # Pelvis/hips 230811: ST calcification at superior aspect of greater trocanter. Mild OA b/l.|ct:0:|mri:0:|msus:0:|cbc:0:|im:0:|rm:0:|bds:0:# 2010. Mild osteopenia (hip).

How do I make the field size bigger?

Many thanks.

bradymiller wrote on Friday, November 02, 2012:

Hi,

Best option is to upgrade to 4.1.1 . This stems from a bug globally not allowing entries with greater than 255 characters. The fix for this was rather extensive, so not very easy to only fix this and stay on version 4.1.0. If you really wanted to stay on 4.1.0 could likely place a work around in library/options.inc.php (search for the error string there and skip the length check for the datatype that the exam is using; note you risk silently truncating data, though, if you are using this datatype somewhere else that won’t support more than 255 characters).

-brady
OpenEMR