Developer forum

Forum » Development » Error processing CategoryValues (When indexing products)

Error processing CategoryValues (When indexing products)

Martin Møller Christensen
Reply

Hi,

We are receiving this error when we try to build the product index:

Error processing CategoryValues. 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 System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)    at Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder.ProcessProducts(SqlConnection connection, IIndexWriter writer, Tracker tracker)

I have looked around and can't figure out where these category values are the "same".

 

Thanks in advance!

 

Here is the full log for more information:

2019-10-03 09:45:05.957: Running.
2019-10-03 09:45:06.003: Fetching build definition.
2019-10-03 09:45:06.003: Fetched build definition. 'Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder'.
2019-10-03 09:45:06.003: Preparing schema.
2019-10-03 09:45:06.019: Prepared schema.
2019-10-03 09:45:06.019: Creating index writer.
2019-10-03 09:45:06.019: Created index writer: 'Dynamicweb.Indexing.Lucene.LuceneIndexWriter'.
2019-10-03 09:45:06.019: Instance availability (Products): False.
2019-10-03 09:45:06.019: Starting build process.
2019-10-03 09:45:06.035: Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder building using Dynamicweb.Indexing.Lucene.LuceneIndexWriter... Action: 'Full', Resume: 'False'
2019-10-03 09:45:06.035: Opening index writer.
2019-10-03 09:45:06.144: Opened index writer to overwrite index
2019-10-03 09:45:06.144: Opening database connection.
2019-10-03 09:45:06.144: BulkSize: '500'
2019-10-03 09:45:06.144: MaxProductsToIndex: '2147483647'
2019-10-03 09:45:06.144: OnlyIndexActiveProducts: 'False'
2019-10-03 09:45:06.144: SkipGrouping: 'False'
2019-10-03 09:45:06.144: SkipRelatedProducts: 'False'
2019-10-03 09:45:06.144: SkipExtenders: 'False'
2019-10-03 09:45:06.144: SkipAllExtendedFields: 'False'
2019-10-03 09:45:06.144: SkipCategoryFields: 'False'
2019-10-03 09:45:06.160: HandleInheritedCategoryValues: 'False'
2019-10-03 09:45:06.160: DoNotStoreDefaultFields: 'False'
2019-10-03 09:45:06.160: DoNotAnalyzeDefaultFields: 'False'
2019-10-03 09:45:06.160: EmptyStringReplacement: ''
2019-10-03 09:45:06.160: SkipImages: 'False'
2019-10-03 09:45:06.160: ShopsToIndex: 'SHOP8'
2019-10-03 09:45:06.175: Loading product group relation information.
2019-10-03 09:45:06.321: Loaded product group relation information.
2019-10-03 09:45:06.321: Loading group relation information.
2019-10-03 09:45:06.337: Loaded group relation information.
2019-10-03 09:45:06.337: Loading product group relation information.
2019-10-03 09:45:06.337: Loaded product group relation information.
2019-10-03 09:45:06.337: Loading product groups.
2019-10-03 09:45:06.337: Loaded product groups.
2019-10-03 09:45:06.337: Loading campaign information.
2019-10-03 09:45:06.352: Loaded campaign information.
2019-10-03 09:45:06.352: Loading variant information.
2019-10-03 09:45:06.368: Loaded variant information.
2019-10-03 09:45:06.384: Loaded extended variant counts.
2019-10-03 09:45:06.384: Loaded manufacturers.
2019-10-03 09:45:06.384: Loaded assortments.
2019-10-03 09:45:06.384: Loaded customFields.
2019-10-03 09:45:06.384: Loaded CategoriesValues.
2019-10-03 09:45:06.399: Loaded StockLocations.
2019-10-03 09:45:06.399: Loaded StockLocationStockStatuses.
2019-10-03 09:45:06.399: Loaded shop and default images.
2019-10-03 09:45:06.399: Loaded Favorite Lists.
2019-10-03 09:45:06.399: Loading product relations information.
2019-10-03 09:45:06.462: Loaded product relations information.
2019-10-03 09:45:06.462: Loading translation information.
2019-10-03 09:45:06.524: Loaded translation information.
2019-10-03 09:45:06.540: Starting processing products.
2019-10-03 09:45:25.946: Running (2061 / 3299).
2019-10-03 09:45:35.712: Error processing CategoryValues. 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 System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)    at Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder.ProcessProducts(SqlConnection connection, IIndexWriter writer, Tracker tracker)
2019-10-03 09:45:35.712: Error processing CategoryValues
2019-10-03 09:45:35.712: Completed processing products.
2019-10-03 09:45:35.712: Closing index writer, just trying...
2019-10-03 09:45:36.040: Closed index writer successfully.
2019-10-03 09:45:36.040: Ended build process.
2019-10-03 09:45:36.040: Completed (3015 / 3015).

 

 


Replies

 

You must be logged in to post in the forum