cancel
Showing results for 
Search instead for 
Did you mean: 

Buy X get Y Promotion, Freegift action not applying in cart ?

Former Member
0 Kudos

Hi Experts,

Help Needed

Buy X get Y Promotion, Free gift action not applying in cart. Its throwing exception while adding the product X to cart.

below is the exception

ices.rrd.RuleGroupExecutionRRD@612a4462[code=defaultRuleGroup-1816fc26-12c1-4770-acc6-87de08f7e2e2]]. org.kie.api.runtime.rule.ConsequenceException: Exception executing consequence for rule "6770a218-0d74-436d-88e0-cce36ad5240f" in de.hybris.platform.droolsruleengine: [Error: ruleFreeGiftAction.executeAction(new DefaultDroolsRuleActionContext(variables, kcontext), ["product":"8043567", "quantity":new Integer(1)]): null] [Near : {... Map variables = [ "de.hyb ....}] ^ [Line: 1, Column: 1] at org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39) ~[drools-core-6.3.0.Final.jar:6.3.0.Final] at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1083) ~[drools-core-6.3.0.Final.jar:6.3.0.Final]

Rule is getting published successfully, Correct message is getting displayed in PDP as well

regards, Ankit

former_member636375
Participant
0 Kudos

Hi,

How did you resolve this? Please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

You might want to use implementation involving “Percentage discount on partner products”/“Percentage discount on products” actions instead of “Free gift” action in Conditions&Actions section in properties of your promotion . It should work fine.

Hope that helps,