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

Try our conversational search powered by Generative AI!

Possible "Index was outside the bounds of the array" exception in CloneMetaFieldReferenceTypes

Found in

EPiServer.Commerce 11.0.0

Fixed in

EPiServer.Commerce 13.6.0

(Or a related package)

Created

Jul 17, 2019

Updated

Aug 06, 2019

Area

Core

State

Closed, Fixed and tested


Description

If a MetaObject contains a metafield of type DictionaryMultiValue or DictionarySingleValue, but the field is empty and deep cloned, there is an "Index was outside the bounds of the array" exception in CloneMetaFieldReferenceTypes.

Reported from https://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2019/7/error-index-was-outside-the-bounds-of-the-array--while-loading-purchase-order/