AnushaNT Member since 2015 2 posts
Tech Mahindra
Posted: April 27, 2016
Last activity: October 4, 2018

Cannot save class instance without a primary key

Hi All,

I have a file listener in my application that would look after csv files.The csv file needs to be parsed and the data for each record has to be saved in an external table in Pega. I have created a class in Pega with no keys as there is no unique attribute for each record I get in the file. When I am trying to save the data in the table, I am getting below error.

Cannot open or save instances of class XXXX--the class might be abstract, or it might have no defined keys, or it might descend from Code-.

Is it required to have a key defined for the class ?


**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.

Data Integration
Moderation Team has archived post
Share this page LinkedIn