SaaS CMS has officially launched! Learn more now.

Nullreference exception in EPiServer.Commerce.Marketing.OrderFormPriceMatrix.CalculateAndCommit when redemption limit is exceeded.

Vote:
 

Hi,

I'm running into following error when I have more products that apply to a discount than I have available redemptions.
In this case I'd have expected that the discount would only be applied on the first products. However i get a null reference error in OrderFormPriceMatrix.

We've implemented a custom RedemptionLimitService. I can see that the number of available redemptions returned is correct.

Any ideas?

We are running Commerce 11.8.2 and CMS 11.4

StackTrace:

at EPiServer.Commerce.Marketing.OrderFormPriceMatrix.CalculateAndCommit(AffectedEntries item, Func`3 apply)
at EPiServer.Commerce.Marketing.OrderRewardApplicator.ApplyPercentage(AffectedOrder item, Decimal percentage, PromotionProcessorContext processorContext)
at EPiServer.Commerce.Marketing.RewardApplicatorBase`1.<>c__DisplayClass1_0.<Apply>b__1(TAffectedObject item)
at EPiServer.Commerce.Marketing.RewardApplicatorBase`1.ForEach(Func`2 apply, IEnumerable`1 affectedItems)
at EPiServer.Commerce.Marketing.RewardApplicatorBase`1.Apply(RewardDescription reward, RedemptionDescription redemption, PromotionProcessorContext processorContext)
at EPiServer.Commerce.Marketing.RewardApplicatorBase`1.Apply(RewardDescription reward, Int32 remainingRedemptions, PromotionProcessorContext processorContext)
at EPiServer.Commerce.Marketing.PromotionEngine.Run(IOrderGroup orderGroup, PromotionEngineSettings settings)
at EPiServer.Commerce.Order.IOrderGroupExtensions.ApplyDiscounts(IOrderGroup orderGroup, IPromotionEngine promotionEngine, PromotionEngineSettings settings)

Thanks in advance,

Brecht 

#202179
Mar 18, 2019 17:33
Vote:
 

As you have custom implementation, I would suggest to contact developer support service for further assistance. 

#202183
Mar 18, 2019 18:39
Vote:
 

Thanks, I've contacted support.

#202992
Apr 05, 2019 12:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.