ERROR System.AggregateException


System.AggregateException: One or more errors occurred. ---> System.IO.PathTooLongException



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. 



  • 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.

Was this article helpful?
0 out of 1 found this helpful