Problem
While trying to publish an item using Sitecore Publishing Service, the publish job shows status as Failed (check snapshot below) and when user clicks on it to get more details, it says - Could not resolve stores 'web' of type source
Solution
We checked the logs and it said -2023-10-09 09:31:32.560 -04:00 [Error] Error during publish of 443f1620-188b-4f39-a9c8-ef284d9a6c6b - Error: "Could not resolve stores web of type source"
System.Exception: Could not resolve stores web of type source
at Sitecore.Framework.Publishing.Data.DefaultStoreFactory.CreateSources(DataAccessContextType dataAccessContext, String[] names)
at Sitecore.Framework.Publishing.PublishContext..ctor(IStoreFactory storeFactory, PublishOptions publishOptions, Guid jobId, DateTime started)
at Sitecore.Framework.Publishing.PublishContextFactory.Create(IStoreFactory storeFactory, PublishOptions publishOptions, Guid jobId, DateTime started)
at Sitecore.Framework.Publishing.Tasks.PublishTask.OnExecute(IScheduledTaskExecutionContext context)
We also found a sitecore community link addressing this issue which mentioned about sc.publishing.xml having incorrect Target value - https://community.sitecore.com/community?id=community_question&sys_id=df0523e51b4770d0b8954371b24bcb50
We checked and configurations in our Sitecore Publishing Service were absolutely fine.
What was wrong then? It seem while testing a component, the user switched from master database to web database in Sitecore client and forgot to revert back to master database. Due to this, the publishes started erroring even though when the page item was already open in Experience Editor before the database switch happened.
As silly as it may sound, but such problems can also consume your significant amount of development time. Hope it helps you! Thanks!!
Comments
Post a Comment