When migrating Microsoft OneDrive using On Demand Migration there is an error for the path is longer than 260 characters.
Cannot process objects for specified path Folder/Folder2/.../samplefile.txt
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.
CallStack -- at System.IO.PathHelper.GetFullPathName() at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Path.GetFullPathInternal(String path) at System.IO.FileInfo.Init(String fileName, Boolean checkHost) at Microsoft.SharePoint.Deployment.FileSerializer.GetFileInfo(ImportStreamingContext importContext, String fileName) at Microsoft.SharePoint.Deployment.FileSerializer.UploadFileData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath filePath, Boolean fileExistsInDb, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, MetaInfoHandler metaInfo, StreamingContext context) at f
There is a known limit folder path + file limit of 260 characters. A given element (file or folder) cannot be more than 128 characters.
NOTE: URL encoded characters can add more characters.
WORKAROUND
Customer will need to shorten all file paths to have less than 248 characters for ODM be able to migrate the data.
NOTE: Microsoft has the following information on this limitation.
https://support.office.com/en-us/article/invalid-file-names-and-file-types-in-onedrive-onedrive-for-business-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa
The entire path, including the file name, must contain fewer than 400 characters for OneDrive, OneDrive for Business and SharePoint Online. Once the limit is exceeded, the following error is reported:
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback 이용 약관 개인정보 보호정책 Cookie Preference Center