Errors during SXA search index update


Description

The issue might occur during indexing when one of the SXA search indexes (sitecore_sxa_master_index or sitecore_sxa_web_index) is updated. The following errors can be found in Sitecore XP log files:

Error 1:
Exception: System.NullReferenceException

Message: Object reference not set to an instance of an object.

Source: Sitecore.XA.Foundation.VersionSpecific

at Sitecore.XA.Foundation.VersionSpecific.Search.SxaItemCrawler.IsExcludedFromIndex(IIndexableUniqueId indexableUniqueId, IndexEntryOperationContext operationContext, Boolean checkLocation)

Error 2 (specific to Solr):

Error adding field 'level_tl'='false' msg=For input string: "false"
This issue affects SXA 1.5 Initial Release - 1.7 Update-1.

Solution

To resolve the issue, download and apply the following patch compatible with the affected product version: 

https://github.com/SitecoreSupport/Sitecore.Support.13290/releases.

Contact Sitecore Support to get a solution for other SXA releases.