How to Fix Missing File Names in SharePoint Online Modern Document Libraries
Question details
Users cannot see file names in multiple SharePoint Online modern document libraries, while other metadata columns display normally.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Viewing files in a modern document library where custom site scripting or formatting may have been applied.
- Observed behavior
- The file name column is completely blank across multiple document libraries within the same site, despite other columns showing data.
Ensure you have Site Owner or Site Collection Administrator permissions to modify library views, clear formatting, and review site scripts.
Clear Row Formatting and Create a New View
Rule out display bugs caused by custom JSON view formatting by clearing the current formatting and generating a fresh view.
Often, applied color formatting or custom JSON scripts can conflict with the default behavior of modern SharePoint views, causing critical columns like the file name to render blank.
Navigate to the affected SharePoint document library. Click the View options dropdown menu in the upper-right corner and select 'Format current view'.
If you see a custom layout or JSON code in advanced mode, delete it or click 'Clear formatting', then save the changes to check if the file names reappear.
If the names remain missing, click the view menu again and select 'Create new view' or 'Save view as'. Name your new view.
Edit the new view settings to ensure that the 'Name (linked to document with edit menu)' column is checked and positioned correctly, then click 'OK' to save.

Review Site Scripts and Consult Developer Support
If the issue persists across multiple libraries on the site, the site template or custom scripting may be corrupting the default columns.
Manage Your Documents Seamlessly with WPS Office
While SharePoint handles your cloud storage, WPS Office provides a lightweight, highly compatible suite to create, edit, and collaborate on your downloaded documents. Enjoy a familiar interface and excellent compatibility with Microsoft Office formats without the hefty subscription fees.

Frequently Asked Questions
Why are file names visible in classic experience but missing in modern views?
The modern experience in SharePoint relies heavily on modern web parts and JSON formatting. If a custom JSON script contains errors or conflicting properties, it can cause the Name column to render blank in the modern view while functioning normally in the classic mode.
How can I check if my SharePoint library has custom row formatting applied?
In your document library, click the View options dropdown menu at the top right, select 'Format current view', and choose 'Advanced mode' to see if any custom JSON code has been added to modify the rows or columns.
Can I recover missing file names without recreating the entire document library?
Yes, creating a new view and ensuring the default 'Name (linked to document)' column is checked often bypasses view-specific corruption. If this fails, the issue is likely at the site configuration level rather than data loss, meaning your files and their names are still safely stored in the backend.




