Developer forum

Forum » Ecommerce - Standard features » Build index fails

Build index fails

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hello,

For some reason when I try to manually build the products index on https://mountainbikemuseum.net the process fails and tells me:

2022-12-14 11:20:20.753: Error processing products. 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.Ecommerce.Indexing.ProductIndexBuilder.ProcessProducts(SqlConnection connection, IIndexWriter writer, Tracker tracker)
2022-12-14 11:20:20.753: Error processing product (AutoID: 2700, ProductID: ITEM417, VariantID: , LanguageID: LANG1, Name: ProFlex Attack LE).

I have checked the database, but the product mentioned is definitely not a duplicate and stored only once in EcomProducts.

Funny this is that the scheduled task that builds the index seems to run normally, no error there:

2022-12-14 11:20:05.2693|INFO|ScheduledTasks|Task 'Repository task handler' with ID '1' execution is started
2022-12-14 11:20:05.2693|INFO|ScheduledTasks|Task 'Repository task handler' ID=1: task execution started
2022-12-14 11:20:09.3630|INFO|ScheduledTasks|Task 'Repository task handler' ID=1: Method Dynamicweb.Indexing.Repositories.Tasks.TaskRunner.RunTasks returned: Nothing
2022-12-14 11:20:09.3630|INFO|ScheduledTasks|Task 'Repository task handler' ID=1: task execution finished
2022-12-14 11:20:09.3786|INFO|ScheduledTasks|Executing task 'Repository task handler' with ID '1' completed successfully.
2022-12-14 11:20:09.3943|INFO|ScheduledTasks|Successfully executed all 1 tasks (Repository task handler (1)); time spent: 4.132 s

I'm running 9.14.1.

Any idea's?

Justin

 


Replies

 

You must be logged in to post in the forum