SharePoint 2013 TypeError Cannot read property replace of undefined

This SharePoint tutorial, we learned how to fix error TypeError Cannot read property replace of undefined which comes in SharePoint 2013 list view after a windows update.

The error looks like below when we open the SharePoint list view. Rather than showing list items in the view, it shows like below:

TypeError: Cannot read property ‘replace’ of undefined
TypeError: Cannot read property ‘replace’ of undefined
TypeError: Cannot read property ‘replace’ of undefined
TypeError: Cannot read property ‘replace’ of undefined

TypeError Cannot read property replace of undefined

TypeError: Cannot read property ‘replace’ of undefined

Recently in one of the working SharePoint environments, we got the above issue and that was working fine previously.

After doing some analysis we got to know that the Windows team did some patch update.

Then we follow this TechNet article to resolve the issue.

To fix this issue you can install below fixes.
Download and Install KB 3114508

Or you can try installing January 2016 CU for SharePoint 2013.

We tried the second approach and it works fine for us.

You may like following SharePoint tutorials:

This SharePoint tutorial, we learn how to solve error TypeError: Cannot read property ‘replace’ of undefined.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>