1

When loading SellableItems in the Content Editor that have a XC9 Entity Composer template property without value (no RawValue key present in JSON) the CatalogDataProvider throws an error:

GetItemFields(ItemDefinition item, VersionUri version, CallContext context)
Sitecore.Diagnostics.Assert.ArgumentNotNull(Object argument, String argumentName)
Sitecore.Data.FieldList.Add(ID fieldId, String value)

This results in not having any values shown in the Sitecore Content Editor for Sellable Items.

1

This line in the ReadOnlyCatalogDataProvider causes it:

fieldList1.Add(templateField.ID, property[(object) "Value"].Value<string>());

When changing it to:

var val = property[(object)"Value"].Value<string>() ?? String.Empty; fieldList1.Add(templateField.ID, val);

This is registered as bug by Sitecore support by reference number #40914.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.