logo
search
Microsoft 365 Migration

How to Resolve SharePoint Migration Empty Item and Invalid Name Errors

Kushani NimanthikaKushani Nimanthika Oct 10, 2026 869 views

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.

How to Resolve SharePoint Migration Empty Item and Invalid Name Errors
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 you start

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.

Solution 1Recommended

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.

1
Identify affected items

Check the SharePoint Migration Tool error logs to find the exact network paths and file names causing the issue.

2
Remove unsupported characters

Rename the flagged files or folders to remove restricted characters such as ~ " # % & * : < > ? / \ { | }.

3
Shorten file paths

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.

4
Rescan source

After making the necessary naming adjustments, run the migration scan again to verify that the errors have been resolved.

Review and Rename Invalid Files or Folders
Tip: Use bulk renaming utilities or PowerShell scripts to quickly clean up unsupported characters across large directories.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free version for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the software.
  3. 3. Open Your Documents: Launch WPS Office and instantly open your existing Word, Excel, and PowerPoint files seamlessly.
Fully compatible with Microsoft Office formats like .docx, .xlsx, and .pptx.Avoid complex migration setups with a lightweight, ready-to-use suite.Familiar user interface for quick adoption and minimal learning curve.
microsoft office alternative - wps office

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.