Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Composite Primary Key error

satyapriyanka_vana
Active Participant
0 Kudos
76

Hello Friends

I created a Z table having 2 fields and those 2 fields are primary keys. I guess I can give the values of table as follows.

c1 c2

a   b

a   c

I am getting an error "An entry already existed with the same key".

Where might be the mistake?

1 ACCEPTED SOLUTION

former_member195402
Active Contributor
0 Kudos
49

Hi,

please check the domains of both fields. Do they have a check table for their values?

Regards,

Klaus

3 REPLIES 3

Former Member
0 Kudos
49

Hi ,

There wont be any problem for your scenario.

Check is there any spaces you have saved and again your trying to save spaces.

Regards

Mani

former_member195402
Active Contributor
0 Kudos
50

Hi,

please check the domains of both fields. Do they have a check table for their values?

Regards,

Klaus

0 Kudos
49

Problem in Table definition. Working Now. Thanks for the reply.

Regards

Priyanka