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

Try our conversational search powered by Generative AI!

Unable to index entry with double type metafield using FindSearchProvider

Found in

develop

Created

May 26, 2014

Updated

Jun 05, 2014

Area

Falcon/Commerce

State

Closed, Fixed and Tested


Steps to reproduce

Install and configure FindSearchProvider to CommerceManager

Try to index the Departmental catalog

 

Error: 2014-05-26 10:44:18: Failed to index catalog entry Domaine Christian Serafin-2002(3340) in Departmental Catalog. For more information, see the log file.

 

The stacktrace in debugger:

{"Input string was not in a correct format."}

at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.Double.Parse(String s)
   at EPiServer.Commerce.FindSearchProvider.LocalImplementation.FindDocumentBuilder.BuildMetaFields(FindDocument document, CatalogEntryRow entryRow, ISearchConfiguration configuration)
   at EPiServer.Commerce.FindSearchProvider.LocalImplementation.FindDocumentBuilder..ctor(CatalogEntryRow entryRow, ISearchConfiguration configuration, IEnumerable`1 languages)
   at EPiServer.Commerce.FindSearchProvider.FindSearchProvider.Index(String applicationName, String scope, ISearchDocument document)
   at Mediachase.Search.SearchService.Index(String applicationName, String scope, ISearchDocument document)
   at Mediachase.Search.IndexBuilder.AddDocument(ISearchDocument doc)
   at EPiServer.Commerce.FindSearchProvider.FindSearchIndexBuilder.IndexCatalogEntryDto(IndexBuilder indexer, CatalogEntryRow entryRow, String defaultCurrency, String[] languages)
   at Mediachase.Search.Extensions.BaseCatalogIndexBuilder.BuildIndex(Boolean rebuild)

 

The reason was Wine category has products with double metafields, and it fails to parse that (might due to cultureinfo settings)