Skip to Content
0
Jul 24, 2017 at 06:06 PM

Failed to updatePromotions

101 Views

Hi, I have an incidence similar to that previously reported, but it is not the same

I am trying to update the promotions of a cart (I do not know if it is correct) ... in doing so, it generates the exception: Failed to updatePromotions Java.lang.IllegalArgumentException: Unit must not be 'null'

Here's the line: promotionsService.updatePromotions(promotionGroups, cart, false, PromotionsManager.AutoApplyMode.APPLY_ALL, PromotionsManager.AutoApplyMode.APPLY_ALL, new Date());

However, I see that when I turn the cart in order, the promotions are updated.

What is the right thing to do?

Regards! Amy

Add comment · Share