cancel
Showing results for 
Search instead for 
Did you mean: 

ambiguous unique keys {promotionResult=PromotionResultModel ()} for model Error when the time of exchange in cscockpit.

Former Member
0 Kudos

customer placed an order and Buy 4 Get 2 promotion got applied to customer as per OOTB code there are two promotion actions created for two FreeEntries and when the time of Exchange Error Cmng like below: Error: de.hybris.platform.servicelayer.exceptions.ModelSavingException: [de.hybris.platform.servicelayer.interceptor.impl.UniqueAttributesInterceptor@e4d40fd]:ambiguous unique keys {promotionResult=PromotionResultModel ()} for model PromotionOrderEntryAdjustActionModel () - found at least one ctx model using the same keys

As per OOTB code two promotion action entries created and for both entries promotion type is same, bcoz of this error coming like ambiguous unique keys {promotionResult=PromotionResultModel ()} for model . no issue in storefront end issue was cmng wn the time of exchage only.

Q) Is OOTB supports for Buy 4 Get 2 Free promotion type ?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Can you please tell the which version are you using, basically it depends on promotion result in older hybris 5.x version which got created even time of cancelling order since cloning. will happen.

Former Member
0 Kudos

Hi Abhishek i am using 5.7.0.2 version and i am trying to exchange the product not cancelling.

0 Kudos

As far as i remember even during exchange also a copy will get create.