Fix a Blank SharePoint Modern Document Library View
Question details
The user needs to restore a SharePoint document library's modern view in Edge and Chrome.

- Product
- SharePoint Online document libraries
- Device & OS
- not provided
- Scenario
- A document library view contains several columns and is opened in the modern SharePoint experience.
- Observed behavior
- The library area is blank and reports a JavaScript forEach error in Edge and Chrome. Classic mode and Internet Explorer work; a view with four columns works, but adding a fifth causes it to fail.
Check whether the problem is limited to one library and note which view and columns trigger the blank screen. Make sure you have permission to create a library or can ask a site owner to help.
Create a New Document Library and Move the Files
Use this workaround when the issue is confined to one library; moving the documents resolved the reported case.
The original library may be corrupted, although the exact cause is not confirmed. Check whether the new library needs the same columns, permissions, and other settings before moving files.
On the SharePoint site, select New > Document library, enter a name, and select Create.
Open the new library and use Add column and Settings > Library settings to configure the columns and settings you need. Test the modern view as you add columns.
Open the original library in a working view or classic experience, select the documents and folders, and choose Move to. Select the new library as the destination and confirm the move.
Open the new library in Edge or Chrome and check that the files, views, metadata, permissions, and required version history are present.

Reduce the Columns in the Affected View
Use a simpler view as a temporary way to access the library while investigating the column-related failure.
Request Microsoft Support for a Backend Investigation
Use this option if the new library also fails or if the original library needs further investigation.
Edit Office Documents with WPS Office
WPS Office is a free, lightweight, easy-to-use alternative for editing Office files. Its familiar interface helps you transition from Microsoft Office; it does not repair a SharePoint library view.

Frequently Asked Questions
Why is the modern library view blank in Edge and Chrome?
The reported view produces a JavaScript forEach error when additional columns are displayed. The exact cause is unconfirmed; the original library may be corrupted or require Microsoft backend investigation.
Can I access the files without fixing the modern view first?
If the classic experience or another view works, open the library there to access the files. You can also use that working view to select files and choose Move to for a new library.
Will removing a column from a view delete its data?
Clearing a column in the view's Columns settings hides it from that view; it does not delete the library column or its data. Avoid using the column's delete option.
What should I check after moving files to a new library?
Open the destination library and verify the files, metadata, permissions, views, and required version history. Recreate library settings and columns as needed.
Who can open a Microsoft support request?
A Microsoft 365 administrator can use Help & support in the Microsoft 365 admin center to request assistance. Provide the affected library, browser details, error, and steps to reproduce the issue.




