Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
mmm I would never recommend naming properties that conflict with the internal properties...but if you have to...you could try changing the json property name ?
[JsonProperty(PropertyName = "StandardProduct.Markets")]
public virtual String Markets { get; set; }
The custom Product model contains the following property:
public virtual String Markets { get; set; }
However, it conflicts with the EPiServer.Find.Commerce.EntryContentBaseExtensions.Markets() exception.
That results with the following error when indexing:
fail: EPiServer.Find.Cms.ContentIndexer[0] CPUNAME: An exception occurred while indexing content [Link 4__CatalogContent] [GUID fbe2fa15-9006-422e-8bbc-faf500a5de51] [Type StandardProduct] [Name D]: An item with the same key has already been added. Key: Markets System.ArgumentException: An item with the same key has already been added. Key: Markets
How to include both in the index?