Fix SharePoint Online Modern View and Document Library URL
Question details
Restore access to a SharePoint Online document library in Modern view and investigate an incorrect library web address.

- 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.
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.
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.
Open the affected library in Classic view, select the Library tab, and choose Library Settings.
Under Views, select Create view. Choose Standard View or start from an existing view, and enter a new view name.
Create a public view, select Make this the default view, and click OK to save it.
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.
Return to Library Settings and check whether the Web Address now points to the library instead of /_layouts/error.aspx.

Check whether the library was deleted or needs further support
Use these checks if creating a default view does not restore access or the library returns a 404 error.
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.

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.




