SharePoint Missing workflow history – after migration(Resolved)

I had an issue with workflow status page after migrating SharePoint 2007 -2013.The history is available in Workflow history list but it does not show in workflow status page.

Solution;

Just do a SystemUpdate() for all the items in workflow history list using powershell. This will resolve the issue.

[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”);
$data1 = Get-Content “F:\Tools\URLsJO.txt”

foreach ($line in $data1)
{
$url = $line;
$site = new-object microsoft.sharepoint.spsite($url);
Write-Host $site.allwebs.count
$web=$site.OpenWeb();

$spListColl = $web.Lists

foreach($list in $spListColl)
{
if($list.Title -eq “Workflow History”)
{

foreach ($listItem in $list.Items)
{

$listItem.SystemUpdate()
Write-Host “Updating Items Done”

}

}

}
}

Advertisements

About jollsam

10 years of experience in SharePoint Development, Administration and Solution/Infrastructure Architecture.
This entry was posted in sharepoint and tagged , . Bookmark the permalink.

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