JS error when using Project Tasks list in a webpart RRS feed

  • Question

  • I have placed a project tasks list in a webpart on my default page.  Anytime I click the list and then click "List" tab in the ribbon I get a js error and all options are grayed out.


    I get the following js error:


    Message: 'projectTaskButtonAppName' is undefined Line: 1302 Char: 9 Code: 0 URI: http://sptest/_layouts/sp.ribbon.debug.js?rev=lc6eCMZP6gL5LnuSYh0S6Q%3D%3D


    I've been searching for several hours and it doesn't seem anyone else has reported the issue.  Note: The list works fine on the AllItems.aspx list page, but not on the default.


    any ideas?

    • Moved by Mike Walsh FIN Wednesday, July 6, 2011 3:30 PM admin q (From:SharePoint - General Question and Answers and Discussion (pre-SharePoint 2010))
    Wednesday, July 6, 2011 2:33 PM


  •  I solved the problem by adding a try catch to the JS that was breaking. I made the following change to SP.Ribbon.debug.js: Line 1302-

    return !eval($v_0.HiddenScript);
    return true;

    Now the ribbon buttons are at least usable. I think I'll have to make this same change in SP.ribbon.js .

    Perhaps this is due to me not having MS Project installed on my box.

    Anyway hope this helps some other poor soul as well.

    Wednesday, July 6, 2011 3:44 PM