Hi all,
Promotions for our project is created via integration when SAP sends the SOAP XML which passes through Dell Boomi & Fuse before hitting Hybris. In our Staged/Pre-Prod environment, one such promotion was created and is causing the NullPointerExcpetion. After investigation, we found out that the promotion is returning null when invoked by the below code.
PromotionSourceRuleModel promotion = (PromotionSourceRuleModel) ruleService.getRuleForCode(promotionCode);
When I created promotion from back-office in lower environments like local and QA the same is seen to be working. I would also like to highlight that when the same promotion in pre-prod is created again via SOAP UI with a different code is getting applied. When the promotion priority is changed to 1000000 + series it is also getting applied.
I would appreciate any inputs/pointers on this issue.