Support Article

Bind a LONG value only for insert into a LONG column Exception

SA-33534

Summary



The user was observing 'can bind a LONG value only for insert into a LONG column' error in Pega log file.

Error Messages



2016-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 Reproduce



Not Applicable


Root Cause



An 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.

Resolution

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

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.