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

Arithmetic Overflow occurs on inputting values to a table

SA-48616

Summary



Arithmetic Overflow occurs while inserting values into pr_perf_stats table.


Error Messages



ERROR: numeric field overflow
Detail: A field with precision 9, scale 6 must round to an absolute value less than 10^3.



Steps to Reproduce



Not Applicable


Root Cause



The below column values were greater than the specified column values specification in the database:
  • pxDecryptCount
  • pxDecryptCPU
  • pxDecryptElapsed
  • pxEncryptElapsed
  • pxEncryptCPU
  • pxEncryptCount

Resolution

  1. Extract AlterScripts.sql from HFix-40025.
  2. Run that SQL manually on the database.
  3. Alter the table scripts specific to PostgreSQL database to increase the column size from (9,6) to (18,6).
alter table <prpcdataSchema>.pr_perf_stats alter column pxDecryptCount TYPE numeric(18,6);
alter table <prpcdataSchema>.pr_perf_stats alter column pxDecryptCPU TYPE numeric(18,6);
alter table <prpcdataSchema>.pr_perf_stats alter column pxDecryptElapsed TYPE numeric(18,6);
alter table <prpcdataSchema>.pr_perf_stats alter column pxEncryptElapsed TYPE numeric(18,6);
alter table <prpcdataSchema>.pr_perf_stats alter column pxEncryptCPU TYPE numeric(18,6);
alter table <prpcdataSchema>.pr_perf_stats alter column pxEncryptCount TYPE numeric(18,6);



Published January 1, 2018 - Updated December 2, 2021

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