Skip to main content

Click Mice, Unclick Mice

Go Search
Home
Wikin
Windows Live ID Authentication
  

Click Mice, Unclick Mice > Posts > Calendar 7 Day / Week View Error

 Posts

Calendar 7 Day / Week View Error
I was working with the GroupBoard Workspace 2007 template the other day.  I installed the template to my server farm and I noticed something weird.  Probably only saw this because I have multiple web applications, because the first thing I did was test the GroupBoard Workspace template on my main web app.  It all worked and I was happy.
 
A few days later I noticed on many of my web applications I was receiving an error if someone clicked on the 7 day or week view in a calendar list.  It wasn't a terribly informative error just "An unexpected error has occured".  I did a little more debugging and turned on some additional logging and I tracked down a stack trace:
 

[ArgumentException: Value does not fall within the expected range.]

   Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException) +249

   Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException) +60

   Microsoft.SharePoint.SPListItem.GetValue(String strName) +32

   Microsoft.SharePoint.SPListItem.get_Item(String fieldName) +29

   Microsoft.GroupBoard.EnhancedGroup.EGListItem.get_IsOrganization() +61

   Microsoft.GroupBoard.WebControls.OrganizationItemPicker.InitList() +703

   Microsoft.GroupBoard.WebControls.OrganizationItemPicker.CreateChildControls() +884

   System.Web.UI.Control.EnsureChildControls() +87

   Microsoft.GroupBoard.WebControls.OrganizationItemPicker.OnInit(EventArgs e) +46

   Microsoft.GroupBoard.WebControls.CalendarEntitySelector.OnInit(EventArgs e) +37

   System.Web.UI.Control.InitRecursive(Control namingContainer) +321

   System.Web.UI.Control.InitRecursive(Control namingContainer) +198

   System.Web.UI.Control.AddedControl(Control control, Int32 index) +2067679

   System.Web.UI.ControlCollection.Add(Control child) +146

   Microsoft.SharePoint.WebControls.SPCalendarView.CreateChildControls() +510

   System.Web.UI.Control.EnsureChildControls() +87

   System.Web.UI.Control.PreRenderRecursiveInternal() +41

   System.Web.UI.Control.PreRenderRecursiveInternal() +161

   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62

   System.Web.UI.Control.PreRenderRecursiveInternal() +161

   System.Web.UI.Control.PreRenderRecursiveInternal() +161

   System.Web.UI.Control.PreRenderRecursiveInternal() +161

   System.Web.UI.Control.PreRenderRecursiveInternal() +161

   System.Web.UI.Control.PreRenderRecursiveInternal() +161

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
 
So now I saw the issue, it looks like the GroupBoard Workspace put in a requirement for itself for this view.  Not exactly sure why, but a relatively easy fix for this seems to be just to create a GroupBoard Workspace somewhere in the web application and then delete it if you don't have any reason to keep it around.  As long as a GroupBoard Workspace has existed in the web application at some point the week view works just fine.

Comments

There are no comments yet for this post.