Not able to filter SharePoint 2013 libraries

Giovanni Otto 41 Reputation points
2022-03-04T04:27:58.737+00:00

Good day,

We have 2 SharePoint 2013 servers in a farm WFE and Application server, OWA and SQL server. All running Server 2012.

We have an issue where we are not able to filter any library on the sites.

When hovering over the filters a Javascript icon appears in the bottom left corner.

179923-javascript.jpg

On the first filter it has undefined as an option.

179924-undefined.jpg

When checking developer tools the following error comes up when trying to filter. Unable to get property 'replace' of undefined or null reference.

I did install updates on the servers 2 weeks ago and to try and resolve this issue I uninstalled security updates KB5010412 and KB5010392 but this did not help. I have restarted all of the servers and checked the event logs but cannot find what is causing this. I also see an error Uncaught SyntaxError: Invalid or unexpected token on developer tool. All the information I do find on the errors is about Java coding and I am not a Java developer so everything I find does not make much sense.

Any assistance will be greatly appreciated. I have been debugging this for hours and I am still no where.

Microsoft 365 and Office | SharePoint Server | For business
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. CaseyYang-MSFT 10,461 Reputation points
    2022-03-07T03:08:21.85+00:00

    Hi @Giovanni Otto ,

    Did you add custom Javascript code to filter this library?

    You could try to add SharePoint List Filter web part as a workaround.

    1.Edit page > add a Web Part > Filters > SharePoint List Filter

    180437-1.jpg

    2.Edit Web Part > select your library in "List" > select Full list view in "View"

    180447-2.jpg

    3.Connect web part > Connections > Send Filter Values To > your library

    180512-3.jpg

    4.Get Filter Values From > Configure > select Consumer Field Name

    180502-4.jpg 180503-5.jpg


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.