SAP Knowledge Base Article - Preview

3239043 - Failed to undeploy or publish promotions after upgrade from 1905 to 2105 or later versions

Symptom

After migrated the environment from 1905 version to 2105 or later versions, the promotion module is in a red status.

If trying to undeploy the migrated promotions or publish new ones, it will be failed and below error messages could be found in console logs:

Unable to build KieBaseModel:promotions-base
Unable to resolve ObjectType 'RuleConfigurationRRD' : [Rule name='<droolsrule.uuid>']

Unable to resolve ObjectType 'RuleGroupExecutionRRD' : [Rule name='<droolsrule.uuid>']

Unable to Analyse Expression $result_count > 0 && $groupExecution.allowedToExecute($config):
[Error: unable to resolve method using strict-mode: java.lang.Object.$groupExecution()]
[Near : {... result_count > 0 && $groupExecution.allowedToExecu ....}]
                                 ^
[Line: 63, Column: 3] : [Rule name='<droolsrule.uuid>']

Unable to build expression for 'eval':Cannot invoke "org.drools.compiler.compiler.AnalysisResult.getBoundIdentifiers()" because "analysis" is null '$result_count > 0 && $groupExecution.allowedToExecute($config)' : [Rule name='<droolsrule.uuid>']
java.lang.NullPointerException: Cannot invoke "org.drools.compiler.compiler.AnalysisResult.getBoundIdentifiers()" because "analysis" is null

ERROR Unable to Analyse Expression $result_count > 0 && $groupExecution.allowedToExecute($config):
[Error: unable to resolve method using strict-mode: java.lang.Object.$groupExecution()]
[Near : {... result_count > 0 && $groupExecution.allowedToExecu ....}]
                                 ^
[Line: 63, Column: 3] de/hybris/platform/droolsruleengine<droolsrule.name>RuleMedia.drl

Initialization of rule engine failed during the deployment phase: Unable to resolve ObjectType 'RuleConfigurationRRD', Unable to resolve ObjectType 'RuleGroupExecutionRRD', Unable to Analyse Expression $result_count > 0 && $groupExecution.allowedToExecute($config):
[Error: unable to resolve method using strict-mode: java.lang.Object.$groupExecution()]
[Near : {... result_count > 0 && $groupExecution.allowedToExecu ....}]
                                 ^
[Line: 63, Column: 3], Unable to build expression for 'eval':Cannot invoke "org.drools.compiler.compiler.AnalysisResult.getBoundIdentifiers()" because "analysis" is null 

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


Read more...

Environment

  • SAP Commerce Cloud versions 2105 and later versions

Product

SAP Commerce Cloud 2005 ; SAP Commerce Cloud 2011 ; SAP Commerce Cloud 2105 ; SAP Commerce Cloud 2205 ; SAP Commerce Cloud 2211

Keywords

groupExecution.allowedToExecute, promotion publish failed, promotion undeploy failed, promotion, undeploy, publish, promotionengine, ruleengine, droolsrule, rulecontent, migration , KBA , CEC-SCC-COM-PRO-PE , Promotion Engine , CEC-COM-ADM-PRO , Promotion , Problem

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.