Skip to main content
Became Hot Network Question
edited tags
Link
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117
Source Link

sitecore.context.database.getitem returns null during publish pipeline

Created a custom processor to execute translation during publish process:

<processor type="Sitecore.Publishing.Pipelines.PublishItem.CheckSecurity, Sitecore.Kernel" 
<processor type="Feature.Translation.Commands.TranslateOnPublish,Banner.Feature.Translation" 
<processor type="Sitecore.Publishing.Pipelines.PublishItem.DetermineAction, Sitecore.Kernel"  

while working on the class which is inheriting PublishItemProcessor is returning the value of Sitecore.Context.Database null.