27. February 2018
Rich
Tech Guides
Problem
One Drive will not sync files with more than 400 charactes in the file path
Cause
Limitation
Solution
Use this script and execute to create a list of all files and their number of characters. Address by shortening folder and file names.
$pathToScan = "C:\APP1-Data\SharePointData\MW\MW - Documents" # The path to scan and the the lengths for (sub-directories will be scanned as well).
$outputFilePath = "C:\temp\PathLengths.txt" # This must be a file in a directory that exists and does not require admin rights to write to.
$writeToConsoleAsWell = $true # Writing to the console will be much slower.
# Open a new file stream (nice and fast) and write all the paths and their lengths to it.
$outputFileDirectory = Split-Path $outputFilePath -Parent
if (!(Test-Path $outputFileDirectory)) { New-Item $outputFileDirectory -ItemType Directory }
$stream = New-Object System.IO.StreamWriter($outputFilePath, $false)
Get-ChildItem -Path $pathToScan -Recurse -Force | Select-Object -Property FullName, @{Name="FullNameLength";Expression={($_.FullName.Length)}} | Sort-Object -Property FullNameLength -Descending | ForEach-Object {
$filePath = $_.FullName
$length = $_.FullNameLength
$string = "$length : $filePath"
# Write to the Console.
if ($writeToConsoleAsWell) { Write-Host $string }
#Write to the file.
$stream.WriteLine($string)
}
$stream.Close()
21. February 2018
Rich
Tech Guides
Problem
One Drive will not sync files with more than 400 charactes in the file path
Cause
Limitation
Solution
Use this script and execute to create a list of all files and their number of characters. Address by shortening folder and file names.
$pathToScan = "C:\APP1-Data\SharePointData\MW\MW - Documents" # The path to scan and the the lengths for (sub-directories will be scanned as well).
$outputFilePath = "C:\temp\PathLengths.txt" # This must be a file in a directory that exists and does not require admin rights to write to.
$writeToConsoleAsWell = $true # Writing to the console will be much slower.
# Open a new file stream (nice and fast) and write all the paths and their lengths to it.
$outputFileDirectory = Split-Path $outputFilePath -Parent
if (!(Test-Path $outputFileDirectory)) { New-Item $outputFileDirectory -ItemType Directory }
$stream = New-Object System.IO.StreamWriter($outputFilePath, $false)
Get-ChildItem -Path $pathToScan -Recurse -Force | Select-Object -Property FullName, @{Name="FullNameLength";Expression={($_.FullName.Length)}} | Sort-Object -Property FullNameLength -Descending | ForEach-Object {
$filePath = $_.FullName
$length = $_.FullNameLength
$string = "$length : $filePath"
# Write to the Console.
if ($writeToConsoleAsWell) { Write-Host $string }
#Write to the file.
$stream.WriteLine($string)
}
$stream.Close()
2. December 2016
Rich
Tech Guides
To update the registry, follow these steps:
- Open registry editor.
- Move to the following folder, and then expand it:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers
- Rename the following registry keys
Old folder name |
New folder name |
SkyDrivePro1 (ErrorConflict) |
<space><space>SkyDrivePro1 (ErrorConflict) |
SkyDrivePro2 (SyncInProgress) |
<space><space>SkyDrivePro2 (SyncInProgress) |
SkyDrivePro3 (InSync) |
<space><space>SkyDrivePro3 (InSync) |
On the View menu, click Refresh to verify that the renamed keys now appear at the top of the list.
- Exit Registry Editor, and then restart your computer.
- Uninstall any other applications that use icon overlays such as DROPBOX
https://support.microsoft.com/en-gb/kb/3079213
30. November 2016
Rich
Tech Guides
This problem occurs randomly and you can see there are files to be synced but they never do unless you stop and restart the whole folder sync again, but the problem then re-occurs.
Microsoft Engineer advised this is the resolution.
Stop the folder sync
Terminate groove.exe and mqsvc.exe
C:\Users\%username%\AppData\Local\Microsoft\Office\16.0
Go to AppData/Locla/Microsoft/Office
Delete OfficeFileCache
+ spw
For the 16.0 and 15.0 folders.
Repeat for
C:\Users\%username%\AppData\Local\Microsoft\Office\15.0
In
C:\Users\%username%\AppData\Local\Microsoft\Office\
Delete "Spw"
Then go to Microsoft Credential Manager and clear all Microsoft Office entries.
=========================================================
Restart the One Drive For Business Sync Client and re-sync to sharepoint
22. November 2016
Rich
Tech Guides