Tuesday, June 15, 2010

Invalid WorkflowInstanceID parameter in URL

This error might be encountered for the item(s) whose workflow completed and initiated long back.
This is because of AutoCleanupDays property of Workflow. By default, the value is set to 60 days. After 60 days, if the workflow status is complete and initiated 60 days before, this workflow instance will be deleted.

This kind of deletion is for site performance purposes. To delete all theses old workflow instances, SharePoint runs a timer job named "Workflow Auto cleanup". If you wanted to keep all those workflow instances, you can go to Central Admin -> Operations -> Timer Job definitions -> Disable Workflow Auto Cleanup task.

Tuesday, June 8, 2010

There are no more files. (Exception from HRESULT: 0x80070012)

Sometimes we may need to backup and restore the site collection across servers...
After restoring in new server/site collection, some sites might be throwing the error "There are no more files. (Exception from HRESULT: 0x80070012)". This is because of the default.aspx page got customized in the source[ie. Backup site]. In the destination site, those changes are not procured.

To counter this error, open it in SharePoint Designer and right click on the default.aspx [the respective file] and click reset to site definition.

Site will be working like charm!!!