Question

1
Replies
97
Views
Close popover
Vikram Reddy (Vikram22)
TechMahindra

TechMahindra
IN
Vikram22 Member since 2014 20 posts
TechMahindra
Posted: September 30, 2020
Last activity: October 7, 2020

Adding new primary key for existing class key mismatch

Our application has a class XXX-Data-DWH-List_Product which is mapped to a table pr_List_Product in db.

I have added new key[Name]  to this class XXX-Data-DWH-List_Product when i do test connectvity i see this error

 There is a key mismatch: the keys defined for class XXX-Data-DWH-List_Product do not match the primary key columns for external data table customerdata.pr_pr_List_Product in database CustomerData; the class keys are [ID,Type,Name], but the table's primary keys are [customerdata.type, customerdata.id]   

I have tired to update the key as below :

Configure---Data model--Data base table mapping

Select Category : Data-

Class :XXX-Data-DWH-List_Product      Data base : Customer Data  Edit and select the new keys and save.

But still no luck.

Any suggestions ?

 

Pega Platform 8.4.1 Low-Code App Development Dev/Designer Studio Healthcare and Life Sciences Senior System Architect