Home > PowerShell, SharePoint 2010 > Fixed: SharePoint 2010 Calendar Events Not Showing Up in Calendar Views After Content Migration From SharePoint 2007 Doing a Direct ContentDB Attachment/Upgrade

Fixed: SharePoint 2010 Calendar Events Not Showing Up in Calendar Views After Content Migration From SharePoint 2007 Doing a Direct ContentDB Attachment/Upgrade

I’ve ran into this issue a few times now when migrating from MOSS 2007 to SP2010 by doing a direct content database migration/upgrade to SharePoint 2010.

For whatever reason, when migrating from MOSS 2007 to SP2010 doing a direct content database migration Calendar events do not show up in any Calendar view.  Very odd behavior, and I’m unsure what causes it.

However, to fix this issue you will need to “touch” each item in the Calendar list for the events to show up in the calendar views correctly.

Below is the PowerShell script to do this.

Copy script to text editor and save as (touchlists.ps1)====================================================================================================

$web = Get-SPWeb <URL>
$list = $web.Lists[“NAME OF CALENDAR List”]
$listItems = $list.Items
foreach ($item in $listItems)
{
$item.update()
}
$web.update()
$web.dispose()

=====================================================================================================

Advertisements
  1. May 30, 2014 at 3:26 pm

    Thanks for this post! It really did the trick on multiple calendars post upgrade of an old site.

  2. Dipika Deshmukh
    June 19, 2014 at 11:28 pm

    It doesn’t work

    • June 20, 2014 at 7:24 am

      Hi Dipika, It does work obviously since I myself and others have gotten it to work. Are you receiving an error? what happens when you execute the script?

      Thanks

  3. Debbie Parks
    May 26, 2015 at 3:36 pm

    Before cracking open and adding code, check to ensure the End Time column setting (of the Event content type) is set to either Required or Optional. If set to Hidden, I found the events will not display in Calendar view. Hope this helps someone out there.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: