How to fix "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters..." error

During the migration of SharePoint 2007 site or list you can get this error "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" during the export operation.
To fix this issue you need to change Export folder path. Source 2k7 agent uses "Migration Manager for SharePoint\Web Interface\Migration 2007\Export" folder to store exported data by default. The agent creates new subfolder there for each job and additional subfolder for each SharePoint container (site or list). If container has a long Title you can get error about "long path".
User Guide contains "Temporary Storage of Exported Content" article which describes procedure step-by-step, how to change default path. I suggest to set path like "DRIVE:\MMSP_Export" (for instance D:\MMSP_Export) to avoid "long path" error during the export in future.

  • You can use Long path tool,much faster and better solution.
  • First lets understand this problem, eg: C:\oraclxe\app\oracle\diag\tnslr\user\listener\me.txt, In this "me" file will not be counted as 2 character but will be counted as number of characters in the path name. Its because the windows API has MAX_LENGTH of 255 characters only. Thats probably the answer to your problem. If you want to solve this you can try GS Richcopy 360. I am currently using this software and it has worked for me and my enterprise to solve all our problems related to file copying.