Current Position:Home > Missing workflow history link of "In Progress" workflow!!!

Missing workflow history link of "In Progress" workflow!!!

Update:11-30Source: network consolidation
Advertisement
I recently get complaint from customer that they lost their "In Progress" workflow history link on documents.
I searched on internet and found that "Workflow Auto Clean" job will remove only "Completed" workflow link for document.
So Why SharePoint has removed workflow history link of "In Progress" workflow? and now any work around to get it back because there are approx. 100 document's which running workflow history is missing.

The Best Answer

Advertisement
The issue is caused when migrating from 2010 to 2013. Microsoft’s upgrade process seems to have missed an update required to the Workflow History list, and the following powershell fixes it, with the key being the .SystemUpdate($false) on each item in the workflow
history list:
$url = 'http://mysite/myweb' #todo: update powershell to loop through all sites
$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($false)
Write-Host "Updating Items Done"