MOSS - How to fix recurring Meeting Workspace error: ‘g_InstanceID’ is undefined

After changing the master page on a Meeting Workspace site, the recurring meeting workspace hyperlinks under “Select a date from the list below:” do not work and throw a JavaScript error.

If you create a custom master page and use it for your Meeting Workspaces, a JavaScript error is thrown.

ERRORS:
‘g_InstanceID’ is undefined

CAUSE:
The g_instanceId global JavaScript variable is declared in a script registered runtime by the Microsoft.SharePoint.Meetings.PropertyBag web control. This control is used in the master page that’s used by Meeting Workspace sites called “MWSDefault.master” (located on server in 12 hive\TEMPLATE\GLOBAL\).

STEPS TO REPRO:

  1. Create a new Workspace: Site Actions-> Create Site -> Select [Meetings] Basic Meeting Workspace, click Create.
  2. On Workspace site, add a Calendar list: Site Actions -> Create -> [Tracking] Calendar.
  3. Add a new event to Calendar list, make recurring event, and select [x] Use a Meeting Workspace to organize attendees, agendas, documents, minutes, and other details for this event. Click OK.
  4. Follow steps to create workspace for Calendar event. Go to workspace.
  5. Change master page for workspace: Site Actions -> Site Settings -> [Look and Feel] Master page -> select any master page for Site Master Page and System Master Page. Click OK. Go back to workspace.
  6. Now the links under “Select a date from the list below:” do not work and throw a JavaScript error message: ‘g_InstanceID’ is undefined .

WORKAROUND:

  1. Open SharePoint Designer 2007. Go to File | Open Site and connect to SharePoint site.
  2. Expand out _catalogs -> masterpage -> open master page used on Meeting Workspace.
  3. In Code View, add the following line of code under <%@ Import Namespace=”Microsoft.SharePoint” %> tag:
    <%@ Register Tagprefix=”Meetings” Namespace=”Microsoft.SharePoint.Meetings” Assembly=”Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>
  4. Add the following line of code after opening <body …> tag: <Meetings:PropertyBag runat=”server”/>
  5. Save master page, check in (if necessary), and publish major version.

12 Responses to “MOSS - How to fix recurring Meeting Workspace error: ‘g_InstanceID’ is undefined”


  1. 1 Joyce

    Worked like a charm! Thanks!!

  2. 2 Chengg

    Wow.. works well and easy workaround! Thanks!

  3. 3 Casey

    This did not work so well for me, I now receive this message on my site:
    “The version attribute on the register directive is not allowed in this page.”

  4. 4 John

    awesome post, worked great!!!

  5. 5 Tom

    We also got the “version attribute…” error when trying this fix.

  6. 6 Niall

    The version attribute error is caused by incorrect syntax. When you copy and paste from above, make sure the quotes are correct….” versus “

  7. 7 Kathy

    How do you fix this issue if you don’t have Sharepoint Designer?

  8. 8 Remandlo

    I was getting the “version attribute” error but now I get the “unknown error” message. Has anyone experienced the same problem???

    Remandlo

  9. 9 Derik

    This worked out, just had to change the quotes.

  10. 10 Snowy

    Keep up the good work.

  11. 11 Matt

    I edited both default.master and MWSdefault.master files for the Meeting Workspace site with these changes and still have the issue.

    Any idea why this workaround *wouldn’t* work? What else can or should I try?

  1. 1 SharePoint Designer Support Team Blog : How to fix recurring Meeting Workspace error: ‘g_InstanceID’ is undefined

Leave a Reply