How to Resolve SharePoint Migration Empty Item and Invalid Name Errors
Question details
The user needs to troubleshoot errors reporting empty items and invalid SharePoint names when migrating folders and files using the SharePoint Migration Tool.

- Product
- SharePoint Migration Tool
- Device & OS
- not provided
- Scenario
- Migrating folders and files from a local network path to a SharePoint site.
- Observed behavior
- The migration tool halts or flags errors, indicating that certain files or folders have empty items or invalid names.
Before proceeding, ensure you have administrative access to both the source network path and the target SharePoint site to make necessary file and folder modifications.
Review and Rename Invalid Files or Folders
Identify and correct files or folders with unsupported characters, reserved names, or excessive path lengths before rescanning.
SharePoint has strict naming conventions. Files or folders containing restricted characters or exceeding path length limits will cause the migration tool to fail.
Check the SharePoint Migration Tool error logs to find the exact network paths and file names causing the issue.
Rename the flagged files or folders to remove restricted characters such as ~ " # % & * : < > ? / \ { | }.
Ensure the total path length (including the folder structure) does not exceed the SharePoint limit of 400 characters by moving files closer to the root directory or renaming folders.
After making the necessary naming adjustments, run the migration scan again to verify that the errors have been resolved.

Address Empty or Inaccessible Items
Remove or exclude 0-byte files and folders that lack proper read permissions.
Seek Assistance from Microsoft Support
For complex or persistent migration errors, escalate the issue to dedicated SharePoint engineers.
Try a Lightweight and Compatible Office Suite
If complex SharePoint migrations and Microsoft 365 setups are slowing you down, consider WPS Office. It provides a simple, lightweight, and highly compatible alternative for your daily document workflows.
- 1. Download the Installer: Visit the official WPS Office website and download the free version for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the software.
- 3. Open Your Documents: Launch WPS Office and instantly open your existing Word, Excel, and PowerPoint files seamlessly.

Frequently Asked Questions
What characters are invalid in SharePoint file names?
SharePoint restricts certain characters in file and folder names, including ~ " # % & * : < > ? / \ { | }. Removing these characters will usually resolve invalid name errors during migration.
Why does the migration tool flag empty items?
The SharePoint Migration Tool flags 0-byte (empty) files or empty folders because they may not migrate correctly or hold no data value. You can either delete these files manually or configure the migration tool settings to ignore them.
What is the maximum file path length in SharePoint?
SharePoint Online supports a maximum total path length of 400 characters. If your local network path combined with the file name exceeds this limit, you will encounter errors and must shorten the folder names before migrating.




