No root node was present (with Id 11111111-1111-1111-1111-111111111111) - Error in Sitecore Publishing service job
The Problem
I was setting up publishing service for Sitecore instance and then published a few items but my publish jobs kept failing as in snapshot below -
2023-11-08 23:00:26.790 +05:30 [Error] There was an error performing the publish during stage: ""
System.AggregateException: One or more errors occurred. (One or more errors occurred. (No root node was present (with Id 11111111-1111-1111-1111-111111111111). (Parameter 'allNodes')))
---> System.AggregateException: One or more errors occurred. (No root node was present (with Id 11111111-1111-1111-1111-111111111111). (Parameter 'allNodes'))
---> System.ArgumentOutOfRangeException: No root node was present (with Id 11111111-1111-1111-1111-111111111111). (Parameter 'allNodes')
at Sitecore.Framework.Publishing.Common.DataStructures.Tree.TreeBuilder`2.Build(ITreeNodeDescriptor`2[] allNodes)
at Sitecore.Framework.Publishing.ItemIndex.FullSourceIndex.InitializeIndex()
at Sitecore.Framework.Publishing.ItemIndex.FullSourceIndex.EnsureIndexInitialized()
--- End of inner exception stack trace ---
The Solution
I went through the configurations and all looked fine. The root sitecore node in content tree is the item that has this ID 11111111-1111-1111-1111-111111111111. Such items are managed in item.dat files now.
In my publishing service, I did find that the items.master.dat was present outside the <publishing service>/items/master folder and so was the case for items.web.dat. This looked suspicious and on comparing it with a working instance of Sitecore publishing service, I decided to move the dat files to their respective folders. Doing this, fixed the issue with the publishing service and the publish jobs started succeeding as expected.
Thanks for reading!! Happy Sitecoring!!
Comments
Post a Comment