Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Obsolete method “ExtractEntries” with two parameters always returns ArgumentNullException

Found in

EPiServer.Commerce 11.5.1

Fixed in

EPiServer.Commerce 11.7.0

(Or a related package)

Created

Jan 04, 2018

Updated

Jan 19, 2018

Area

Core

State

Closed, Fixed and tested


Description

The obsolete method " ExtractEntries(IEnumerable<string> codes, Decimal quantity)" always returns an argument null exception because of following implementation in ExtractQuantity method.

if (sortMethod == null)
        throw new ArgumentNullException(nameof (sortMethod));

It should not throw an exception but fall back to the old behavior. It is mentioned that the method will be supported until October 2018, but it doesn't work.

Method obsolete warning says: “Use overload method with PromotionData parameter. It will remain at least until October 2018.”