I am getting below exception "Publish Delayed Page Versions" job
Exception has been thrown by the target of an invocation. [Must be of type PageData Parameter name: value]
Can you turn on logging on debug level and see if that gives what page it is complaining about?
Hi Daniel Ovaska
Can you please tell me where exaclty i can turn on logging as i could check this in my TEST and PROD environment only.
It's a config file in root of website called episerverlog.config. You need to lower the threshold on the root to all and set it to use the rollingfileappender. Check out documentation about enabling logging.
What version of CMS are you using?
hI Daniel Ovaska
Hmm you have a custom repository?
Try disabling that. That's the most probable reason....I think I saw something about a bug related to that Possible repo combined with delayed publishing on github.
From your stack trace it looks like you are using this plugin for profiling?
Try removing the dll for a start.
Hi Daniel Ovaska
I tried but their is dependency assciated and i cannot go that much deep.
Please can you give some alternate solution or atleast some idea for debugging .
Also let me know what is need of removing profiler here.
Hi Daniel Ovaska
FYI the detailed exception. Hope this will help you to identify the solution.
2016-03-05 00:00:18,267  ERROR EPiServer.DataAbstraction.ScheduledJob: 3.1.2 Failed to execute job d6833606-63ac-4250-9cb1-8f6dec8c75d5System.ArgumentException: Must be of type PageDataParameter name: value at EPiServer.Core.PageDataCollection.Add(Object value) at EPiServer.DataFactory.ListDelayedPublish() at POSSIBLE.ProfiledContentRepository.ProfiledContentRepository.ListDelayedPublish() at EPiServer.Util.DelayedPublishJob.Execute(IContentRepository contentRepository)
using System;using log4net;using EPiServer.Core;using EPiServer.ServiceLocation;
var logger = LogManager.GetLogger("PageTypeErrorLogger");
var contentVersionRepository = ServiceLocator.Current.GetInstance<IContentVersionRepository>();
PageDataCollection pageDataCollection = new PageDataCollection();
foreach (ContentReference contentLink in contentVersionRepository.ListDelayedPublish())
catch (Exception ex)
logger.Error("Error while adding pages to pageDataCollection for page of id" + contentLink.ID);
Try running this in solution and see if that will catch the problematic page in logs. Put it in a scheduled job or on startpage or similar...anywhere will work...
You probably have some weird page somewhere that Episerver can't resolve as a pagedata. Maybe some old test page or something similar...
Search for it in edit mode and see if it's some old content that isn't used. In that case delete it and rerun job and hope for the best. :)
Do you know why these pages giving this error as i could see from code the pages are inherited from pagedata class.
Are they visible on website and works ok? Check if they have any version that is supposed to be published that you can delete.
Also in the code above check what type this returns
Maybe it returns null or something strange that can't be added to PageDataCollection.
If there aren't that many pages, I would try delete them and recreate them and see if that helps. Or get in touch with EPiServer support. Something has gone wrong here with the CMS I would say.
its returning type as "PageVersion"
I have removed all delayed publish item from tblworkcontent table but still getting same issue.
Get in touch with support and register a support ticket.