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

BatchUpdateException: Arithmetic overflow error

SA-100316

Summary



BatchUpdateException is generated in the Pega logs.


Error Messages



[egaRULES UsageDaemon] [STANDARD] [ ] [ ](nitor.internal.UsageDaemonImpl) ERROR   - Unable to save usage data to the database; verify that the table for Log-Usage has the correct schema

[egaRULES UsageDaemon] [STANDARD] [ ] [ ](nitor.internal.UsageDaemonImpl) ERROR   - Error occurred while attempting to commit

[egaRULES UsageDaemon] [STANDARD] [ ] [ ](nitor.internal.UsageDaemonImpl) ERROR   - Usage Failure Reason 1: Arithmetic overflow error converting numeric to data type numeric.   

DatabaseException caused by prior exception: java.sql.BatchUpdateException: Arithmetic overflow error converting numeric to data type numeric.

| SQL Code: 8115 | SQL State: S0008

[egaRULES UsageDaemon] [STANDARD] [ ] [ ] (nitor.internal.UsageDaemonImpl) ERROR   - Usage Failure Reason 2: Arithmetic overflow error converting numeric to data type numeric.

[egaRULES UsageDaemon] [STANDARD] [ ] [ ] (nitor.internal.UsageDaemonImpl) ERROR   - Usage data discarded


Steps to Reproduce



Not Applicable


Root Cause



Issue with table connected to the log-Usage class. The below columns did not define a property value when the datatype is defined.
  • pxDecryptCount
  • pxDecryptCPU
  • pxDecryptElapsed
  • pxEncryptElapsed
  • pxEncryptCPU
  • pxEncryptCount 

Resolution



Perform the following local-change:
  1. Back up the pr_perf_stats database table.
  2. Execute the Alter commands.

    alter table <PegaDataSchema>.pr_perf_stats alter column pxDecryptCount numeric(18,6);

    alter table <PegaDataSchema>.pr_perf_stats alter column pxDecryptCPU numeric(18,6);

    alter table <PegaDataSchema>.pr_perf_stats alter column pxDecryptElapsed numeric(18,6);

    alter table <PegaDataSchema>.pr_perf_stats alter column pxEncryptElapsed numeric(18,6);

    alter table <PegaDataSchema>.pr_perf_stats alter column pxEncryptCPU numeric(18,6);

    alter table <PegaDataSchema>.pr_perf_stats alter column pxEncryptCount numeric(18,6);

Published February 10, 2020 - 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