Monday, October 24, 2011

Resolving the g_instanceId undefined error in Meeting Workspaces

 

If you’re utilizing a custom master page derived from the OOB v4.master page, you’ll probably notice Re-occurring meeting workspaces begin to fail when trying to navigate between dates of said workspace.  To reproduce the problem, simply create a calendar, add a re-occurring event to the calendar and choose the option to use a meeting workspace to manage the events.  Click through to the workspace and then use the date navigation in the left hand side nav bar… If you haven’t implemented the fix below, you will see a JavaScript ‘g_instanceId is undefined’ or similar error.

image

To resolve, edit your custom masterpage and add the ‘Meetings’ Tag Prefix below the ‘Microsoft.SharePoint’ namespace import declaration as per below

<%@ Import Namespace="Microsoft.SharePoint" %>

<%@ Register

Tagprefix="Meetings"

Namespace="Microsoft.SharePoint.Meetings"

Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

then, simply add the meetings ‘PropertyBag’ web control directly after the opening <body> tag:

<body scroll="no" onload="if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();" class="v4master">

<Meetings:PropertyBag ID="PropertyBag1" runat="server"/>

Package and redeploy and you should have solved your problem…

10 comments:

  1. Awesome. First Google hit and it fixed the annoying problem that's been hanging around for months.

    ReplyDelete
  2. thank you.. this solution works!

    ReplyDelete
  3. Thanks very much for sharing it. It works perfectly.

    ReplyDelete
  4. Why would you load a version 12.0.0.0 assembly and not a 14.0.0.0?

    ReplyDelete
  5. Thanks! Very helpful post!!!

    ReplyDelete
  6. Thank you very much! It works!

    ReplyDelete
  7. Here is an easier fix, just a couple of clicks.
    http://support.microsoft.com/kb/2738143

    ReplyDelete