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

BadTableMappingException while saving to pr_page_store

SA-10357

Summary



User's PegaRULES logs indicate many occurrences of the exception:

com.pega.pegarules.pub.database.BadTableMappingException.BadTableMappingException

Does this exception have any impact on any of the product functionality? 

This exception is being logged in development and testing environment. Both of those are running on Pega 7.1.7 platform which is the result of an upgrade from PRPC 6.2 SP2.


Error Messages



2015-05-22 15:37:36,263 [l-threads-996386758)] [TABTHREAD1] [ ] [ PegaRULES:07.10] ( mgmt.base.DatabaseStorage) ERROR - Database serialization failed for requestor: HFEF182336F83D4502817432481FF9F28, thread: STANDARD, page: pyFilterCriteria_D_pyDataExplorer_pxSummaryResults_pxRows_pyGrouping_pzDataExplorerInner_2
com.pega.pegarules.pub.database.BadTableMappingException: Database-BadTableMapping-KeyPropertyTooBig pxInsName PegaDATA pr_page_store 128 133 HFEF182336F83D4502817432481FF9F28!STANDARD!PYFILTERCRITERIA_D_PYDATAEXPLORER_PXSUMMARYRESULTS_PXROWS_PYGROUPING_PZDATAEXPLORERINNER_2 System-SavedPages MERGE INTO PEGA_ADMIN.pr_page_store t USING (SELECT ? "pzInsKey" , sysdate"pxCommitDateTime" , ? "pxCreateDateTime" , ? "pxCreateOperator" , ? "pxCreateOpName" , ? "pxCreateSystemID" , ? "pxInsName" , ? "pxObjClass" , ? "pxUpdateDateTime" , ? "pxUpdateOperator" , ? "pxUpdateOpName" , ? "pxUpdateSystemID" , ? "pyLabel" , ? "pzPVStream" FROM dual) inputs ON (t.pzInsKey = inputs."pzInsKey") WHEN MATCHED THEN UPDATE SET PXCREATEDATETIME = inputs."pxCreateDateTime" , PXCREATEOPERATOR = inputs."pxCreateOperator" , PXCREATEOPNAME = inputs."pxCreateOpName" , PXCREATESYSTEMID = inputs."pxCreateSystemID" , PXINSNAME = inputs."pxInsName" , PXOBJCLASS = inputs."pxObjClass" , PXUPDATEDATETIME = inputs."pxUpdateDateTime" , PXUPDATEOPERATOR = inputs."pxUpdateOperator" , PXUPDATEOPNAME = inputs."pxUpdateOpName" , PXUPDATESYSTEMID = inputs."pxUpdateSystemID" , PYLABEL = inputs."pyLabel" , pzPVStream = inputs."pzPVStream" , pxCommitDateTime = sysdate WHEN NOT MATCHED THEN INSERT (pzInsKey , pxCommitDateTime , PXCREATEDATETIME , PXCREATEOPERATOR , PXCREATEOPNAME , PXCREATESYSTEMID , PXINSNAME , PXOBJCLASS , PXUPDATEDATETIME , PXUPDATEOPERATOR , PXUPDATEOPNAME , PXUPDATESYSTEMID , PYLABEL , pzPVStream) VALUES (inputs."pzInsKey" , sysdate , inputs."pxCreateDateTime" , inputs."pxCreateOperator" , inputs."pxCreateOpName" , inputs."pxCreateSystemID" , inputs."pxInsName" , inputs."pxObjClass" , inputs."pxUpdateDateTime" , inputs."pxUpdateOperator" , inputs."pxUpdateOpName" , inputs."pxUpdateSystemID" , inputs."pyLabel" , inputs."pzPVStream")
From: (unknown)
SQL: MERGE INTO PEGA_ADMIN.pr_page_store t USING (SELECT ? "pzInsKey" , sysdate"pxCommitDateTime" , ? "pxCreateDateTime" , ? "pxCreateOperator" , ? "pxCreateOpName" , ? "pxCreateSystemID" , ? "pxInsName" , ? "pxObjClass" , ? "pxUpdateDateTime" , ? "pxUpdateOperator" , ? "pxUpdateOpName" , ? "pxUpdateSystemID" , ? "pyLabel" , ? "pzPVStream" FROM dual) inputs ON (t.pzInsKey = inputs."pzInsKey") WHEN MATCHED THEN UPDATE SET PXCREATEDATETIME = inputs."pxCreateDateTime" , PXCREATEOPERATOR = inputs."pxCreateOperator" , PXCREATEOPNAME = inputs."pxCreateOpName" , PXCREATESYSTEMID = inputs."pxCreateSystemID" , PXINSNAME = inputs."pxInsName" , PXOBJCLASS = inputs."pxObjClass" , PXUPDATEDATETIME = inputs."pxUpdateDateTime" , PXUPDATEOPERATOR = inputs."pxUpdateOperator" , PXUPDATEOPNAME = inputs."pxUpdateOpName" , PXUPDATESYSTEMID = inputs."pxUpdateSystemID" , PYLABEL = inputs."pyLabel" , pzPVStream = inputs."pzPVStream" , pxCommitDateTime = sysdate WHEN NOT MATCHED THEN INSERT (pzInsKey , pxCommitDateTime , PXCREATEDATETIME , PXCREATEOPERATOR , PXCREATEOPNAME , PXCREATESYSTEMID , PXINSNAME , PXOBJCLASS , PXUPDATEDATETIME , PXUPDATEOPERATOR , PXUPDATEOPNAME , PXUPDATESYSTEMID , PYLABEL , pzPVStream) VALUES (inputs."pzInsKey" , sysdate , inputs."pxCreateDateTime" , inputs."pxCreateOperator" , inputs."pxCreateOpName" , inputs."pxCreateSystemID" , inputs."pxInsName" , inputs."pxObjClass" , inputs."pxUpdateDateTime" , inputs."pxUpdateOperator" , inputs."pxUpdateOpName" , inputs."pxUpdateSystemID" , inputs."pyLabel" , inputs."pzPVStream")
SQL Inserts: <SYSTEM-SAVEDPAGES HFEF182336F83D4502817432481FF9F28!STANDARD!
at com.pega.pegarules.pub.database.BadTableMappingException.createKeyPropertyTooBigException(BadTableMappingException.java:244)


Steps to Reproduce



There are no specific steps identified to replicate the behaviour

Root Cause



Exception:

com.pega.pegarules.pub.database.BadTableMappingException: Database-BadTableMapping KeyPropertyTooBig pxInsName PegaDATA pr_page_store 128 133

indicates that the column 'pxInsName' on the database is defined with size 128 and actual data being saved is 133 bytes and hence the inert's in to the table fails.

Resolution



The behaviour was resolved by increasing the column size of 'pxInsName' from 128bytes to 256bytes.

Published June 12, 2015 - 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