Bind a LONG value only for insert into a LONG column Exception
SummaryThe user was observing 'can bind a LONG value only for insert into a LONG column' error in Pega log file.
Error Messages2016-12-30 00:40:26,152 [ PegaRULES-Batch-4] ( internal.access.DatabaseImpl) ERROR - Encountered problem when performing a Commit;com.pega.pegarules.pub.database.DatabaseException: ORA-01461: can bind a LONG value only for insert into a LONG column;;DatabaseException caused by prior exception: java.sql.BatchUpdateException: ORA-01461: can bind a LONG value only for insert into a LONG column;; |
Steps to ReproduceNot Applicable
Root CauseAn issue in the custom application code or rules. User was inserting page XML data to one of the column in the data base table. Checked the structure of data base table and observed that the column data type has been specified as VARCHAR2(4000) in order to insert large data which is causing the issue.
Change the data type of the column to CLOB from VARCHAR2(4000) in the data base table. Below are the links to articles that are suggesting to use the CLOB data type.
Published February 10, 2017 - Updated February 18, 2017