Publishing Service does not always publish items in buckets if LazySourceIndex is used


Description

Sometimes usage of the LazySourceIndex when calculating manifests might lead to orphaned items in buckets. This happens because the parent structure of bucket folders is not always processed correctly. 

The issue affects Sitecore Publishing Service from 2.2.1 to 4.2.1.

Solution

To resolve the issue, consider the following option:

  1. Download and place sc.FullSourceIndex.xml file into the /Publishing Service/config/global folder.
  2. Restart the Publishing Service.

Note: The suggested configuration file makes specific Publishing Service instance always use FullSourceIndex. The default configuration is available at the following path: /sitecore/publishing/sc.publishing.services.xml).