Archive

Archive for June, 2013

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

June 11, 2013 4 comments

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()

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