Hi,
We are migrating to a new checkout page and getting the exception "ShoppingCartInvalidException " with the message “OrderRowNotIncludedInAValidDelivery” during shopping cart validation in the klarna callback. We have examined the order carriers on disc and it seems that the deliveryId on the orderRows is not matching the seleced delivery.
It’s this code (decompiled litium code) that is throwing the exception:
foreach (OrderRowCarrier orderRow1 in carrier.OrderRows)
{
OrderRowCarrier orderRow = orderRow1;
if (orderRow.DeliveryID == Guid.Empty)
throw new ShoppingCartItemInvalidException(ShoppingCartItemInvalidErrorCode.OrderRowNotIncludedInAValidDelivery);
DeliveryCarrier deliveryCarrier = carrier.Deliveries.FirstOrDefault<DeliveryCarrier>((Func<DeliveryCarrier, bool>) (x => x.ID == orderRow.DeliveryID));
if (deliveryCarrier == null || deliveryCarrier.OrderID != orderRow.OrderID)
throw new ShoppingCartItemInvalidException(ShoppingCartItemInvalidErrorCode.OrderRowNotIncludedInAValidDelivery);
}
Do someone have any pointers for how an orderCarrier could end up in such a broken state? We have tried to reproduce the issue without any luck. It’s not happening all the time, only sometimes.
Litium version: [7.6.3]