locked
Publishing Site Template: Uncaught TypeError: Cannot read property 'RmsSupportedExtensions' of undefined RRS feed

  • Question

  • hi,

    I 'm getting this error "Uncaught TypeError: Cannot read property 'RmsSupportedExtensions' of undefined" from the file "core.js" in the "MasterPage Gallery", "List Template Gallery", "WebPart Gallery" when i try to select a document/item in that gallery. And the ribbon options under "Files" & "Library" tabs were disabled even though i am a site collection administrator. I am struggling with this issue from last couple of days? Everything was working fine before with no issues. Also, I haven't made any changes to the site or a template. Suddenly one day when i open the masterpage gallary and added a script file and then tried to publish the file and that where it is not allowing me to do so. I have attached couple of Screenshots.

    Below is the Complete error Stack If this would help you in resolving the Issue:

    "TypeError: Unable to get property 'RmsSupportedExtensions' of undefined or null reference\n   at AddDocLibMenuItems (static.sharepointonline.com/.../core.js:1:265960)\n   at BuildMenu (static.sharepointonline.com/.../core.js:1:228413)\n   at BuildMenuWithInit (static.sharepointonline.com/.../core.js:1:227645)\n   at SP.Utilities.Internal.ECBAdapter.prototype.$1y_0 (static.sharepointonline.com/.../sp.core.js:2:53788)\n   at SP.Utilities.Internal.ECBAdapter.prototype.$1X_0 (static.sharepointonline.com/.../sp.core.js:2:53504)\n   at SP.Utilities.Internal.ECBAdapter.prototype.$1t_0 (static.sharepointonline.com/.../sp.core.js:2:52113)\n   at SP.Utilities.Internal.ECBAdapter.prototype.canHandleECBCommand (static.sharepointonline.com/.../sp.core.js:2:51750)\n   at SP.Ribbon.ListViewWebPartPageComponent.prototype.canHandleCommand (static.sharepointonline.com/.../sp.ribbon.js:2:19497)\n   at SP.Ribbon.DocLibWebPartPageComponent.prototype.canHandleCommand (static.sharepointonline.com/.../sp.ribbon.js:2:58365)\n   at CUI.Page.FocusManager.prototype.callCommandHandlerForEnabled (static.sharepointonline.com/.../cui.js:1:334638)" 

    When i select a document from the masterpage gallery:

    I have encountered with the below error:

    After passing through the error, And click on the "Files" tab from the Ribbon. It displays as all the options are disabled.

    And click on the "Library" tab from the Ribbon, Does the same as all the options were disabled.

    And Now i clicked on "Files" tab again and immediately i click back the "Library" tab, Now all the options were enabled. But in the "Files" tab all the options were enabled i.e "discard check-out", "Check-in", "Check-out", "Publish', "UnPublish", "Approve/Reject", "Cancel Approval" etc. And when i click on Approve, it does nothing.


    Please let me know if you need more info.

    Thanks

    Sai


    SaiRatna Avala

    Thursday, August 20, 2015 6:17 PM

Answers

  • Hi guys got the same error :seems the core.js changed from version to version

    16.0.4404.1210 core.js <- has the same bug and the buggy 

    if (Boolean(a.ListSchema.RmsSupportedExtensions))

    16.0.4316.1223 core.js <- dont have the bug

    Best regards

    Rodrigo Pinto, SharePoint MVP



    • Edited by Scoutman MVPMVP Friday, August 21, 2015 4:02 PM badformated
    • Marked as answer by Dennis Guo Thursday, September 10, 2015 2:37 AM
    Friday, August 21, 2015 3:59 PM

All replies

  • Hi Sai,

    Please try to remove your custom script and check whether it works or not.

    I can't find the property "RmsSupportedExtensions" in the "Core.js" file, if your code use it, the error will be occurs. I suggest you debug your code using IE F12 or you can provide the code for further research.

    Best Regards,

    Dennis Guo


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Friday, August 21, 2015 7:07 AM
  • Hi Dennis,

        We are experiencing the same issue in SharePoint Online, but without any custom js code.

        The problem appears in the call to function AddDocLibMenuItems(e, g, a, h, i) from core.js. Specifically, the error is thrown when a.ListSchema is accessed without a null check:

    if (Boolean(a.ListSchema.RmsSupportedExtensions)) {
        var s = itemTable.getAttribute("ext").toLowerCase(),
        p = a.ListSchema.RmsSupportedExtensions.toLowerCase().split(","),
        q = p.indexOf(s) > -1;
        q && Flighting.VariantConfiguration.IsExpFeatureClientEnabled(524) && HasRights(0, 4) && !currentItemIsMountPoint && !j && !l && currentItemFSObjType != "1" && a.listBaseType == 1 && AddEncryptMenuItem(e, g, a, k, h, i)
    }


    Friday, August 21, 2015 12:45 PM
  • Hi guys got the same error :seems the core.js changed from version to version

    16.0.4404.1210 core.js <- has the same bug and the buggy 

    if (Boolean(a.ListSchema.RmsSupportedExtensions))

    16.0.4316.1223 core.js <- dont have the bug

    Best regards

    Rodrigo Pinto, SharePoint MVP



    • Edited by Scoutman MVPMVP Friday, August 21, 2015 4:02 PM badformated
    • Marked as answer by Dennis Guo Thursday, September 10, 2015 2:37 AM
    Friday, August 21, 2015 3:59 PM
  • Hi i am also getting same issue while downloading Master pages

    Monday, August 24, 2015 5:29 AM