Symptom
When attempting to publish a promotion, a similar error to the one below is displayed on the backoffice:
The Rule Engine module hybris-rules:promotions:1.0.0.614 update failed with reason [RulesModule:hybris-rules:promotions:1.0.0.6141)
de/hybris/platform/droolsruleengineCOR_order_threshold_fixed_discount-00025005-00029007RuleMedia.drl line 48 : [ERR 102] Line 48:50 mismatched input 'OR' in query2)
de/hybris/platform/droolsruleengineCOR_order_threshold_fixed_discount-000250005-00029007RuleMedia.drl line 0 : Parser returned a null Package3) null line 0 : null].
Other related errors in the logs can be observed during startup or when attempting to publish promotions:
INFO | jvm 1 | main | 2018/09/12 19:41:26.205 | [1;31mERROR [Thread-101] [DefaultPlatformRuleEngineService] Kie Containers initialisation/swapping failed: RulesModule:hybris-rules:promotions:1.0.0.6151) de/hybris/platform/droolsruleengineCOR_order_threshold_fixed_discount-00025005-00029007RuleMedia.drl line 48 : [ERR 102] Line 48:50 mismatched input 'OR' in query
INFO | jvm 1 | main | 2018/09/12 19:41:26.205 | 2) de/hybris/platform/droolsruleengineCOR_order_threshold_fixed_discount-00025005-00029007RuleMedia.drl line 0 : Parser returned a null Package
INFO | jvm 1 | main | 2018/09/12 19:41:26.205 | 3) null line 0 : null
INFO | jvm 1 | main | 2018/09/12 19:41:26.205 |
...
INFO [Thread-474016] [ModuleSwapCompletedListener] Received event [RuleEngineModuleSwapCompletedEvent{rulesModuleName='hybris-rules:promotions:1.0.0.616', previousRulesModuleVersion='1.0.0.608', rulesModuleVersion='null', failed=true, failureReason='RulesModule:hybris-rules:promotions:1.0.0.6161) de/hybris/platform/droolsruleengineCOR_order_threshold_fixed_discount-00025005-00029007RuleMedia.drl line 48 : [ERR 102] Line 48:50 mismatched input 'OR' in query
INFO | jvm 1 | main | 2018/09/12 20:16:24.756 | 2) de/hybris/platform/droolsruleengineCOR_order_threshold_fixed_discount-00025005-00029007RuleMedia.drl line 0 : Parser returned a null Package
ERROR [ajp-bio-8010-exec-318] [10.16.126.46] [DefaultCommerceRuleEngineService] Rule evaluation failed with message 'Cannot complete the evaluation: rule engine was not initialized for releaseId [hybris-rules:promotions:1.0.0.608]' for facts: [de.hybris.platform.ruleengineservices.rao.DeliveryModeRAO@5213fa13, de.hybris.platform.ruleengineservices.rao.DeliveryModeRAO@dcc61dc5, de.hybris.platform.ruleengineservices.rao.CategoryRAO@f98a79f,
...
INFO | jvm 1 | main | 2018/09/13 19:16:51.666 | [m de.hybris.platform.ruleengine.exception.DroolsInitializationException: Cannot complete the evaluation: rule engine was not initialized for releaseId [hybris-rules:promotions:1.0.0.608]
Read more...
Environment
This issue can be observed on any hybris version making use of the new promotion engine and any drools version.
Product
SAP Hybris Commerce 1808 ; SAP Hybris Commerce 6.0 ; SAP Hybris Commerce 6.1 ; SAP Hybris Commerce 6.2 ; SAP Hybris Commerce 6.3 ; SAP Hybris Commerce 6.4 ; SAP Hybris Commerce 6.5 ; SAP Hybris Commerce 6.6 ; SAP Hybris Commerce 6.7
Keywords
- hybris
- commerce
- kie
- droolsrule
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview