SharePoint Document Issues

Fix SharePoint Online Modern View and Document Library URL

Elise WilliamsElise Williams Nov 22, 2026 868 views

Question details

Restore access to a SharePoint Online document library in Modern view and investigate an incorrect library web address.

Fix SharePoint Online Modern View and Document Library URL
Product
SharePoint Online
Device & OS
not provided
Scenario
A user needs to open a large document library in the Modern experience and access its views.
Observed behavior
The library opens in Classic view but fails in Modern view. Library settings show a web address ending in /_layouts/error.aspx, and views do not appear on the library page.
Before you start

Open the affected library in Classic view and confirm that you have permission to create and manage public views. Compare the browser address with the Web Address shown in Library Settings.

Solution 1Recommended

Create a new default view for the document library

Use this approach when the library opens in Classic view but its Modern view and available views fail to load.

1
Open library settings

Open the affected library in Classic view, select the Library tab, and choose Library Settings.

2
Create a view

Under Views, select Create view. Choose Standard View or start from an existing view, and enter a new view name.

3
Set the default

Create a public view, select Make this the default view, and click OK to save it.

4
Test Modern view

Return to the library and select Exit classic experience if available. Navigate away and back to check that the library and its views still open in Modern view.

5
Check the web address

Return to Library Settings and check whether the Web Address now points to the library instead of /_layouts/error.aspx.

Create a new default view for the document library
Results can vary: Creating a default view resolved the reported issue, but it may not correct every Modern view or URL problem.
Free Microsoft Office alternative

Edit Office documents with WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents. Its format compatibility helps you move between office applications, though it does not repair SharePoint library views or URLs.

Open and edit documents while working outside the affected SharePoint libraryCompatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar interface makes it easy to switch from Microsoft OfficeFree and lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does my library work in Classic view but fail in Modern view?

A problem with the library's default view may prevent Modern view from loading. In Classic view, open Library Settings, create a public view, and make it the default, then test Modern view again.

Where can I create a default document library view?

In the library's Classic experience, select the Library tab, open Library Settings, and choose Create view under Views. Select Make this the default view before saving.

What does an address ending in /_layouts/error.aspx mean?

It is an error page address rather than the expected library address. Compare the Web Address in Library Settings with the address used to open the library in Classic view, then test a new default view.

What should I do if the library returns a 404 error?

Check the site's Recycle Bin for the library and restore it if it was deleted. If it is not there or the error persists, contact Microsoft support with the affected URL and troubleshooting results.