Upgrade to 9.1D06 or later. Which fixes one cause of the 210012 error.
Beginning with Progress 9.1E, the DBTOOL utility is provided to identify and fix SQL width violations of character and decimal data, as well as identify data values incompatible with SQL-92. See the References to Other Documentation below for more information on DBTOOL.
In Progress 9.1D05 and earlier, the following options are available to avoid errors from data in a field exceeding its SQL width:
1) Make sure that the data in the field is never greater than the SQL width defined in the field.
2) Change the SQL width in the metaschema. In 9.1 there will be code in the 4GL data dictionary to set this value. In 9.0B, this must be done programmatically. The following code will do this:
find first _file where _file._file-name = "<table>".
find first _field of _file where _field._field-name = "<column>".
update _field._width.
3) The preferred solution in Progress 9.1D and earlier is to create a SQL view from a SQL-92 client to provide the necessary data truncation. This is the preferred option because the data can be maintained as-is from the 4GL, but the customer is then responsible for any truncation of the data. The view created by the customer will contain a substring() of the field in question. The following code is an example:
CREATE VIEW view1 (col1, col2) AS SELECT col1, substring(col2,1,8) FROM pub.table1
This assumes that table1.col2 is the field with the long values, and it is being truncated to 8 characters.