Error
System.AggregateException: One or more errors occurred. ---> System.IO.PathTooLongException
Cause
The issue is that files are not uploading. The error is buried in the logs and shows up as:
"One or more errors occurred. System.AggregateException: One or more errors occurred. ---> System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
This is a .NET framework limitation that we cannot control.
The error can occur when a user is uploading files to Azure. When UploaderWiz is working through the user's folder structures, we sometimes find file paths that are too long. If a file path is longer than 248 characters, we can't access the file, and the error is written into the log as the migration project continues.
Resolution
- Review the error log to see the failed files.
- Move those failed files into another file path, and rename the file path with less than 248 characters.
- Run UploaderWiz again.