Developer forum

Forum » Development » Index stops autobuilding.

Index stops autobuilding.

Jeppe Jakobsen
Reply

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.

 

 

 


Replies

 
Nicolai Pedersen
Reply

Hi Jeppe

In which version is this? I think we have fixed a bug at some point that took missing groups into consideration.

BR Nicolai

 
Jeppe Jakobsen
Reply

Sorry for the late response. I was on holiday last week.

The one we're using right now is version: 8.9.0.3

 
Nicolai Pedersen
Reply

Hi Jeppe

Hm - it sounds like the import runs before the import has completed totally. You are sure the import has complted totally? Or do you import on one solution, and index in another solution using the same DB?

Anything interesting in the event log?

BR Nicolai

 
Jeppe Jakobsen
Reply

I've now become a little more aware of what the problem is:

This is a exception that was logged by the index builder:Billede indsat i tekst 4

At the exact same time, we had a Data Integration job that completed:

The strange thing is, that this is not a job related to products.

Billede indsat i tekst 5

I found this in the log aswell:

Billede indsat i tekst 1

Again with a corresponding Data Integration job completing at this exact time.

Billede indsat i tekst 2

 

It seems like completed Data Integration jobs are causing errors in the index builder.

The solution is running 8.9.0.3, but we're updating it to the newest tonight. So i will soon know if it still occurs.

 

 

 
Nicolai Pedersen
Reply

What was the result of the upgrade?

And you need to attach your images using the upload. You cannot reference a local image :-)

BR Nicolai

 
Jeppe Jakobsen
Reply

It did not solve the issue.

I'll reupload the pictures.

 

1.png 2.png 3.png 4.png

 

You must be logged in to post in the forum