Hi Dynamicweb
We have some indexes that is autobuilt after doing a data integration product import. The import runs every night and triggers the index to rebuild after it has finished. We have this across three sites, where two of them runs and completes fine. The last one has a build that simply refuses to either complete or restart.
We have three builds, A, B and C, and what i have managed to find so far, is that sometimes an exception is logged during the A build. The exception itself seems related to a product not having a group at the time the index is building, but when I check B and C they comepleted without errors.
2017-02-13 11:52:35.7950|INFO|Dynamicweb.Diagnostics.Tracking.Tracker|Running (536708 / 788144).
2017-02-13 11:52:55.7950|INFO|Dynamicweb.Diagnostics.Tracking.Tracker|Running (541159 / 788144).
2017-02-13 11:53:08.7013|INFO|Dynamicweb.Diagnostics.Tracking.Tracker|Error processing product CategoryValues (AutoID: 3033256, ProductID: 9788249515325, VariantID: , LanguageID: LANG1, Name: Fall- og lytteøvelser : dikt). Exception logged
2017-02-13 11:53:08.7013|ERROR|Dynamicweb.Diagnostics.Tracking.Tracker|System.NullReferenceException: Object reference not set to an instance of an object.
at Dynamicweb.eCommerce.Products.Group._Closure$__296._Lambda$__1175(String groupId, String languageId, Field f, Boolean isInheritedVal)
at Dynamicweb.eCommerce.Products.Group.GetCategoryFieldValue(String grpId, String grpLangId, Func`4 getGroupFieldVal, Field field, Nullable`1 currentValOnlyOrInheritedValOnly, String defaultLanguageId)
at Dynamicweb.eCommerce.Products.Product.GetDefaultCategoryValue(String productId, String variantId, String languageId, String defaultLanguageId, IEnumerable`1 groupsIds, String primaryGroupId, Func`5 getProdFieldVal, Func`4 getGroupFieldVal, Field catField)
at Dynamicweb.eCommerce.Indexing.ProductIndexBuilder.HandleCategoryValues(IndexDocument doc, String productId, String variantId, String languageId)
at Dynamicweb.eCommerce.Indexing.ProductIndexBuilder.ProcessProducts()
2017-02-13 11:53:15.7951|INFO|Dynamicweb.Diagnostics.Tracking.Tracker|Running (544505 / 788144).
2017-02-13 11:53:36.9357|INFO|Dynamicweb.Diagnostics.Tracking.Tracker|Running (547160 / 788144).
This flags the build to "failed" in the index. As soon as I press "Resume" it works a few seconds and the index is set to "Completed", but will no longer rebuild on any later product imports. The C and B build are completed fine each night, but since A is the first and stays the same, no new products are never shown in the front-end.
These are the observations that i've made so far and i cannot deduce why the A stays stuck in this state. Any feedback would be much appreciated.