U4-2463 - Examine index fails when supportUnpublished=true

Created by Alex Wilks 04 Jul 2013, 15:14:12 Updated by Mark Bowser 04 Mar 2017, 00:23:21

Relates to: U4-9598

We have a webservice that needs to search all nodes and publish any items it finds that are currently unpublished. I have created an index with supportUnpublished=false and it is created without any issue. Over 1200 nodes, as expected.

When changing supportUnpublished to true and rebuilding the index via the Examine Management tab, an alert error occurs saying "error: The index could not be rebuilt at this time, most likely there is another thread currently writing to the index. Error: System.NullReferenceException: Object reference not set to an instance of an object".

The index has few, if any, items in it.

Additional details are here: http://our.umbraco.org/forum/developers/api-questions/42855-Examine-index-fails-to-rebuild-when-supportUnpublished=true

Comments

Sebastiaan Janssen 18 Jul 2013, 09:41:17

Unfortunately, I can't reproduce. 29 nodes, 4 of which are unpublished. All 29 of them get indexed. This may have been fixed already in 6.1.2 or in the upcoming 6.1.3 (where I tested your configs from the forum thread).


Dan White 21 Aug 2013, 02:45:48

@Alex,

Did you ever find a solution to this? I'm currently having the same issue. Running 6.1.3, started at 6.0.

Thanks


Emmanuel Dugas-Gallant 01 May 2014, 13:54:23

Same thing here with Umbraco 6.2.0-RC


Emmanuel Dugas-Gallant 01 May 2014, 14:08:44

Is this possible to reopen this issue?


Sebastiaan Janssen 01 May 2014, 14:13:38

@duge Try 6.2.0 final, it was just released http://umbra.co/1fBsUS7


Emmanuel Dugas-Gallant 01 May 2014, 14:32:20

@sebastiaan Will do today!


Emmanuel Dugas-Gallant 01 May 2014, 17:40:42

@sebastiaan I've updated my binaries to v6.2.0 and having the same issue loading my site the first time. The internal index stucked when starting. If I change the supportUnpublish to false, it is working... Any ideas?


Nalle Jacobsson 02 May 2016, 12:24:12

I had the same problem with 7.4.3. With supportUnpublished=true almost nothing gets indexed. With supportUnpublished=false everything gets indexed ok except the unpublished.

I finally solved it by removing all my IndexSet custom configurations (IndexAttributeFields, IndexUserFields and IncludeNodeTypes). Not sure which one was causing the problem.


Priority: Normal

Type: Bug

State: Can't Reproduce

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.1, 7.4.3

Due in version:

Sprint:

Story Points:

Cycle: