Posted: 3 Feb 2015 4:05 EST Last activity: 6 Apr 2018 19:26 EDT
Fields that make up the key: ** pzInsKey, pxInsName or pxObjClass can not be selected as part of the keys! in Pega7
I have a class that has Class Key as pzIns key which is working fine in Pega 6.x version. But in Pega 7 i am facing an error to save the class with pzIns key as Class key. can anyone suggest a turn around for this ?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I am thinking that pyID should be set as the class key. PRPC will take care of populating pzInsKey automatically. Can you try using pyID as the Class Key using obj open. If you have the pzInsKey, then you can use Obj-Open-By-Handle to open that instance.
In pega7 onwards the restriction has been implemented, that pzInsKey, pxInsName or pxObjClass can’t be selected as class keys.
As per as my understanding, whenever we are creating a table it must be a copy of pr_other or pc_work. On top the same we have to add the required fields. These properties are very specific to the class and instances. Defined the same again as key is not required. If any new keys like for ClientDetails Class ClientID will be the unique key, need to define the same as Class Key.