Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » An error occurred while attaching module (Dynamicweb.Frontend.Content)

An error occurred while attaching module (Dynamicweb.Frontend.Content)

Eva Sommer

We have upgraded from 8+ to 9.13.5.

When quering products we receive the following error. We have searched for an answer but with no luck. 

An error occurred while attaching module (Dynamicweb.Frontend.Content)

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Dynamicweb.Indexing.Querying.Faceting.FacetGroupHelper.PrepareIndexFieldLookup(IFacetGroup facets)
   at Dynamicweb.Indexing.Querying.Faceting.FacetGroupHelper.ConvertToFacets(XElement obj)
   at Dynamicweb.Indexing.Querying.QueryService.LoadFacets(String fileName)
   at Dynamicweb.Ecommerce.Frontend.Frontend.GetProductsFromIndexQuery(ProductCatalogShowType settingsType)
   at Dynamicweb.Ecommerce.Frontend.Frontend.EcomRender()
   at Dynamicweb.Ecommerce.Frontend.Frontend.GetContent()
   at Dynamicweb.Frontend.Content.GetModuleOutput(Paragraph paragraph, PageView pageview)

Thank you

- Eva


Nicolai Pedersen
This post has been marked as an answer

Hi Eva

Maybe you have the same facet or parameter twice?

You can go to the index, query and facet setup and take a look and try saving it again.

BR Nicolai

Votes for this answer: 1
Eva Sommer

Perfect, thank you :)


You must be logged in to post in the forum