When migrating to SharePoint Online / OneDrive for business, you could get the error:
Scan File Failure:The item created time or modified time is not supported
The reason this is happening with the file or folder is because it doesn’t have a (valid) creation date.
My File Server migration in my case had the value “4-3-1601 05:27:48”.
To resolve the issue, the files need to get a valid creation / Last Access date, here are the steps to achieve this:#
Open PowerShell and navigate to the folder with the files giving the error;
cd “c:\ItemFailureReports” # Check the Creation Time, Last Access Time Get-ChildItem -force | Select-Object Mode, Name, CreationTime, LastAccessTime, LastWriteTime | ft # Get all files in the folder and change the CreationTime, LastAccessTime and LastWriteTime entry $modifyfiles = Get-ChildItem -force | Where-Object {! $_.PSIsContainer} foreach($object in $modifyfiles) { $object.CreationTime=(“11/11/2019 12:00:00”) $object.LastAccessTime=(“11/11/2019 12:01:00”) $object.LastWritetime=(“11/11/2011 12:02:00”) }