Support Article
Cannot Obj-Open PegaCPMHC-Party-Contact instance
SA-34694
Summary
When using an Obj-Open methd in an activity to open a PegaCPMHC-Party-Contact instance, the user is getting an error " Cannot open or save instances of class PegaCPMHC-Party-Contact--the class might be abstract, or it might have no defined keys, or it might descend from Code-."
Error Messages
Cannot open or save instances of class PegaCPMHC-Party-Contact--the class might be abstract, or it might have no defined keys, or it might descend from Code-.
Steps to Reproduce
Create an activity whcih is doing an Obj-Open to get a PegaCPMHC-Party-Contact instance
Root Cause
PegaCPMHC-Party-Contact is the dummy class, and it is just used to place the contact information fetched from PegaCA-Interface-Contact (pa_contact database table).
"PegaCPMHC-Party-Contact" class should not be used to fetch the contact information. Please see the data page "D_Contact_Party" which is meant for populating work party contact information. The source for the data page is a Data transform which fetches contact information from PegaCA-interface-Contact class and copies the information to the data page class (PegaCA-Party-Contact).
Resolution
The user is advised to use PegaCA-Interface-Contact (pa_contact database table).
Published March 11, 2017 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.