Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Database Exception error log for Log Usage stats



During standard operations, exceptions are generated in the PegaRULES log file.

Error Messages

SQL: MERGE INTO your_dataschema.pr_log_reportstats t USING (VALUES (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
, ? , ?)) AS inputs ("pzInsKey" , "pxCreateDateTime" , "pxCreateSystemID" , "pxErrorCount" , "pxInsName" ,
"pxModeOfExecution" , "pxObjClass" , "pxReportExecutionCount" , "pxReportInsKey" , "pxReportOperator" , "pxRowsRetrieved"
, "pxSaveDateTime" , "pxSessionId" , "pxTotalElapsedTime" , "pyClassName" , "pyStreamName") ON (t.pzInsKey =

Steps to Reproduce


Root Cause

A defect in Pegasystems’ code or rules:
During normal processing done by the SystemCleaner agent, some data removed had expired.
This process executes this command prior to deleting the expired rows.
'ALTER TABLE ' || tablename || ' activate not logged initially';
If the subsequent delete statement fails during the purge of the table and there there is an attempt to rollback the changes, then the table is left in an inconsistent state and the above error is generated for any subsequent DML request. DB2 requires that action to address the problem table.


Perform the following local-change:
  1. Refer to IBM DB2 documentation regarding SQLState 55019, Error code -1477:
  2. Drop the table your_dataschema.pr_log_reportstats and recreate the table.
  3. Consult the database administrator regarding this action.

Published November 3, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us