Hi,
How did you create this object variable : "MemberContDetail" ?
[ Tip: Please start all your variables with smaller case ]
Usually you can create this by :
1MemberContactDetails memberContDetail = MemberContDetailsLocalServiceUtil.create(CounterLocalServiceUtil.increment(MemberContactDetails.class.getName()))
In this case the primary key is already applied.
Check your code if this is the same logic.
Thanks,
Siby
Please sign in to flag this as inappropriate.