Scheduled unpublish not working for some files RRS feed

  • Question

  • Hi,

    We noticed a few errors in the event viewer stating:-

    An unexpected exception occurred during scheduled unpublish of a file in site 'url to page'.  Attempts will be made to continue scheduled unpublish of remaining files in the site.


    I browsed to the Pages Library and manually unpublished those pages. Then they got unpublished.

    But this error keeps getting logged.

    Any clue/suggestion will be helpful.

    Thanks and Regards,

    Kshitiz Gupta




    • Edited by Mike Walsh FIN Thursday, April 14, 2011 4:17 AM Overuse of Bold. Reduced to error message only
    Tuesday, April 12, 2011 8:24 PM


  • Hi,

    According to your description, the solution is to change a single entry in web.config, by modifying the line…
    <SafeMode MaxControls=“200“ CallStack=“false“…
    <SafeMode MaxControls=“200“ CallStack=“true“…
    You will also need to set custom errors to 'Off' .
    <customErrors mode=“Off“/>
    You will no longer see the “An unexpected error has occurred” error page and instead you get a lovely ’standard ASP.Net error page’ with the stack trace and everything…development has got that little bit easier.
    In my opinion, I suspect the timer job cause your issue. Please refer to:

    Best regards,
    David Hu


    • Marked as answer by Emir Liu Thursday, April 21, 2011 1:30 AM
    Thursday, April 14, 2011 1:54 AM