Blogroll

Tuesday, December 3, 2013

SharePoint: Unknown Error Accessing Storage Allocation Page

Issue

After clicking on Storage Space Allocation (Site Actions, Site settings, Site Collection Administration), you get an "Unknown Error on page" error message.
Applies To
  • SharePoint Server 2007
  • SharePoint Server 2013
  • SharePoint Foundation 2010 and 2013.

Troubleshooting

After checking the site from Central Administration, it has more space used that what was allocated to it. E.g 2.5 GB used storage space, out of 2.4 GB allocated.
After successfully increasing the storage space from the site, you get the same error while accessing the Storage Space Allocation (storman.aspx) page. 
Enabling the call stack in Webconfig file, you see the following error message: 
Value was either too large or too small for a UInt32.   at System.Convert.ToUInt32(Double value)
   at Microsoft.SharePoint.ApplicationPages.SPListInfo.get_ItemCount()
   at Microsoft.SharePoint.ApplicationPages.StorMan.DocLibDataViewer.Cells(UInt32 uCol)
   at Microsoft.SharePoint.ApplicationPages.StorMan.BuildView()
   at Microsoft.SharePoint.ApplicationPages.StorMan.Page_PreRender(Object sender, EventArgs e)
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnPreRender(EventArgs e)
   at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Resolution

There are two possible solutions:
  • We thought of taking backup of the site and restore it into another content database (a time consuming process), or,
  • Recalculate the storage of the SharePoint site using the SPSite.RecalculateStorageUsed PowerShell command (which resolves the issue).

Recalculating Storage using PowerShell

MOSS 2007

[void][system.reflection.assembly]::loadwithpartialname("Microsoft.SharePoint")            
$URL = "http://moss2007/"            
$Site = New-Object Microsoft.SharePoint.SPSite($URL)            
$Site.RecalculateStorageUsed();

SharePoint 2010 / SharePoint 2013

$URL = "http://sp2010/";            
$Site = Get-SPSite -identity $URL;            
$Site.RecalculateStorageUsed();

See Also

References

TechNet Wiki Link

No comments:

ShareThis

snow flakes

blogger widgets Blogspot Tutorial

LinkWithin

Related Posts Plugin for WordPress, Blogger...