OneDrive for Business shows “synced” but serves stale SharePoint files, and Files On-Demand fails with 0x8007017F on the original laptop. Same account and file work on a clean laptop.

Jan-Marais Sans 0 Reputation points
2026-11-30T12:08:47.3566667+00:00

I’m troubleshooting a recurring OneDrive desktop sync problem at our company. Most reports are from users who work in a particular SharePoint team library. SharePoint in the browser and Teams show the current files and edits. File Explorer sometimes opens an older copy even when it shows the file as synced. On my original laptop, online-only files from the same library fail to open altogether.

I’m looking for a way to identify the underlying fault and repair the existing Windows profile. Some affected users have a lot of application configuration tied to their profiles. A new laptop works as a comparison, but replacing laptops or rebuilding profiles isn’t a practical routine repair.

Environment

Component Details
Original affected laptop Windows 11, version 26H2, build 26300.9974, as reported locally
-------- --------
Original affected laptop Windows 11, version 26H2, build 26300.9974, as reported locally
OneDrive on original laptop OneDrive for Business 26.212.1029.0006, installed in C:\Program Files\Microsoft OneDrive
Clean comparison laptop Fresh Windows installation. Same Microsoft 365 work account and same SharePoint library. The exact Windows and OneDrive builds on this laptop still need to be recorded.
Sync method SharePoint Sync into File Explorer using the OneDrive client and Files On-Demand
Local folder Custom short sync root under C:\OD. The affected target is the team library’s General folder.
Library scope My account can access the full library. A local enumeration on my original laptop found 205,584 files in that sync folder. Department users have narrower permissions, often only three to six folders. Their total synced item counts are unknown.
Management We do not use Intune. The original laptop reported that it was neither Active Directory domain-joined nor Microsoft Entra joined. Effective per-user Local Group Policy was not verified.
Network Office LAN behind a Huawei NetEngine AR720. DNS and HTTPS reached the company’s SharePoint endpoint during testing.

What we can reproduce

1. A user opens a stale SharePoint workbook from Explorer

A colleague opens a copy of a shared workbook through their synced Explorer folder. It opens, and the status says it is synced, but it is missing another user’s changes. The latest edits are visible in both SharePoint online and Teams. I have not yet verified the stale Explorer copy’s SharePoint item ID, so an old or duplicate path on that PC is still possible.

2. Online-only Middelburg files fail to download on my original laptop

Using File Explorer and a direct read of the synced placeholder, I reproduced the same error:

0x8007017F — The cloud sync provider failed to validate the downloaded data.

A read fails before Excel or Word needs to interpret the document. In one sample, 32 out of 32 online-only files failed across the library root and 15 top-level folders. These included Excel, Word, and PDF files. The sampled failures typically took around a second. Cloud-only samples from three other SharePoint libraries downloaded successfully on the same laptop.

One reproducible workbook is a small Excel template of about 156 KB. Its full local path was 152 characters and its decoded SharePoint server-relative path was 156 characters. A second failing workbook had a 191-character local path and 195-character decoded SharePoint path. Files near the library root failed with the same code.

3. The same workbook works on the clean laptop

On the clean Windows laptop, I signed into OneDrive with the same work account, synced the same SharePoint folder, and opened the same Excel template from Explorer. It opened and showed live co-authoring presence in desktop Excel. The original laptop still returned 0x8007017F on that workbook.

4. My work OneDrive showed the opposite status mismatch

I edited a Word document in my work OneDrive on the original laptop. The OneDrive tray explicitly reported it as uploaded. I opened it online and confirmed the latest edits. Those edits also appeared on the clean laptop. Despite this, Explorer on the original laptop kept showing Sync pending for the file.

At another point, the tray was stuck on “Downloading, 5 files and 0.0 KB remaining (100%)” and gave no filenames. The readable SyncDiagnostics.log had transfer counters but no per-file queue. One snapshot showed zero queued downloads. The binary OneDrive sync logs were still being written, but I couldn’t determine which items the tray was counting or why validation failed.

What we’ve already done

Action Result
Opened affected content in SharePoint and Teams Current content was visible online, including edits missing from a colleague’s Explorer copy.
-------- --------
Opened affected content in SharePoint and Teams Current content was visible online, including edits missing from a colleague’s Explorer copy.
Tested online-only files in the affected library and several other libraries All 32 sampled files in the affected library failed on my original laptop. Samples from other libraries worked.
Stopped sync for the affected library and reconnected from the exact SharePoint General folder The folder reappeared in Explorer. The first reads returned 0x8007016A (“The cloud file provider is not running”) during reconnection.
Quit and restarted OneDrive The library was listed again under OneDrive Settings → Account. Work OneDrive could read a cloud-only file, but the affected workbook went back to 0x8007017F.
Ran a full OneDrive client reset Used "C:\Program Files\Microsoft OneDrive\OneDrive.exe" /reset, then relaunched the client. Two online-only files in my work OneDrive downloaded successfully once the provider was ready. The affected workbook still returned 0x8007017F on two post-startup reads.
Retested after the reset Both affected Excel templates still failed on the original laptop. The small template continued to open on the clean comparison laptop.
Checked Microsoft 365 Service Health OneDrive and SharePoint Online showed Healthy, with no active incident or advisory listed for either in the tenant view I inspected.
Checked the Microsoft 365 Apps OneDrive Sync Health dashboard It showed 0 reported errors for my original laptop, but Last synced was 26 November 2026. We reproduced the download errors on 30 November 2026.
Checked the network An earlier tool had captured an intermittent DNS failure for graph.microsoft.com, and the router logged DNS-request drops. During later tests from the affected PC, Graph and sign-in DNS lookups succeeded, the organization’s SharePoint hostname resolved through the router, and the SharePoint endpoint responded over HTTPS. The file validation error still reproduced. These checks did not trace the exact authenticated file transfer.

The symptoms tend to surface after months of working normally, and users report them at different times. I don’t know when each client first fell behind. Someone with a locally available copy may only notice when they need a colleague’s latest change.

What I’m asking for

  1. How can I see the exact file or operation behind “Downloading, 5 files, 0 bytes remaining”? Is there a supported OneDrive diagnostic view, event provider, or trace that identifies the item and shows whether it is waiting for validation, retrying, or stuck updating local metadata?
  2. For 0x8007017F, what diagnostic should I capture on the failing laptop and the working laptop while opening the same file? I’m looking for evidence that can distinguish a Cloud Files placeholder problem, local OneDrive metadata, or a failure in the file download and validation path. If there’s a supported way to collect or interpret the OneDrive .odl logs or Cloud Files events for this, a concrete procedure would help.
  3. Has anyone repaired this in place after /reset and a SharePoint library reconnect both failed? If so, what specific component did you repair, and what evidence pointed to it? I’d like to preserve the existing Windows profile, application settings, and any local-only edits.
  4. How do you detect a stale Explorer copy when the status says synced? I can compare a dedicated workbook with SharePoint version history or compare the hashes of a web download and a closed local copy. Is there a supported way to trace which server version the OneDrive client actually delivered?
  5. If you’ve seen this tied to a particular Windows or OneDrive build, what were the working and failing builds? I can collect those from the clean laptop and affected department PCs for comparison.

My pass condition is that the affected laptop opens a previously failing online-only file, pulls down a new SharePoint edit to that same Explorer path, and reports a status consistent with what happened. A progress bar reaching 100% or a green badge by itself doesn’t tell me whether the copy is current.

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Kristen Tran 3,240 Reputation points Independent Advisor
    2026-11-30T12:52:45.53+00:00

    Hi Jan-Marais Sans,

    Thank you for providing such a detailed comparison between the affected laptop and the clean laptop. Since the same account and workbook open successfully from the clean laptop, while other SharePoint libraries can still download cloud-only files on the original laptop, this points more strongly to the local sync relationship or per-user OneDrive state for the affected library than to the workbook, permissions, or SharePoint service itself.

    Before making further changes, please copy any locally modified, unsynced, or pending files to a folder outside all OneDrive sync locations. Do not delete the existing C:\OD folder until those files have been reviewed.

    As the OneDrive reset and library reconnect did not resolve the issue, I recommend the following isolation tests:

    1/ Test with a genuinely new sync root

    In the existing Windows profile, stop syncing the affected SharePoint library, rename the retained C:\OD folder, and reconnect the same SharePoint folder to a new, empty location, such as C:\OD-Test. Reusing the original folder can also reuse damaged placeholders or local sync-root state.

    If the previously failing online-only workbook opens from the new location, the issue is most likely associated with the previous sync root or its placeholders. Microsoft’s guidance also recommends renaming the retained folder before resyncing so that the new connection receives fresh data:

    Resolve sync issues in OneDrive for work or school - SharePoint

    2/ Test in another Windows user profile on the same laptop

    If the file still fails in the new sync root, create a temporary local Windows user on the original laptop. Sign in to OneDrive with the same Microsoft 365 work account and sync only the affected SharePoint folder.

    • If it works in the temporary Windows user profile, the fault is isolated to the original user profile’s OneDrive configuration, registered sync root, or local metadata.
    • If it also fails in the temporary profile, investigate a device-wide component, such as the OneDrive installation, Windows Cloud Files driver, endpoint security, DLP, encryption, backup software, or another filesystem filter.

    This test does not require rebuilding the existing profile and provides a useful fault boundary for Microsoft Support.

    3/ Capture the same hydration attempt on both laptops

    Use the known 156-KB workbook and record the UTC test time, full local path, SharePoint item URL, Windows build, OneDrive version, and whether the file is online-only before the test. Run the following commands on both laptops:

    attrib "C:\OD\path\template.xlsx"

    sc query CldFlt

    reg query HKLM\SYSTEM\CurrentControlSet\Services\CldFlt /v Start

    fltmc filters

    fltmc instances

    Microsoft documents attrib for checking Files On-Demand states and states that the Windows Cloud Files Filter Driver start value should be 2 when Files On-Demand is enabled:

    Set Files On-Demand states in Windows - SharePoint in Microsoft 365

    Compare the fltmc output from the working and failing laptops, particularly antivirus, DLP, encryption, backup, ransomware-protection, or other filesystem filters that appear only on the affected device. The Windows Cloud Files platform uses cldflt.sys between applications and the sync provider, while other minifilters can participate in the same file-open path:

    Build a Cloud Sync Engine that Supports Placeholder Files - Win32 apps

    4/ Collect a Process Monitor comparison

    Run Process Monitor as administrator on each laptop, clear the existing events, and add an Include filter where Path contains the exact workbook filename. Do not initially limit the trace to OneDrive.exe because Explorer, System, OneDrive, Office, and filesystem filters can all participate in hydration.

    Start the capture, open or directly read the placeholder once, stop the capture immediately after success or error 0x8007017F, and save it in native PML format with stack information. Compare the first materially different operation, including Process Name, Operation, Result, Detail, and Stack.

    Process Monitor can capture filesystem activity and thread stacks, but it may not identify OneDrive’s internal validation reason by itself. The paired traces will be most useful when reviewed by Microsoft Support:

    Process Monitor - Sysinternals

    5/ Verify stale files independently of the sync badge

    A green synced icon does not independently confirm that the local file matches a specific SharePoint version. First confirm that File Explorer points to the same site, library, folder, and item as the browser copy, and check for an older disconnected sync path, duplicate library, OneDrive shortcut, or identically named file.

    After closing the workbook completely, download the current version from SharePoint and compare the files with:

    Get-FileHash "C:\OD\path\workbook.xlsx" -Algorithm SHA256

    Get-FileHash "C:\Temp\web-download\workbook.xlsx" -Algorithm SHA256

    Also compare the file size, modified time, and SharePoint version history. There is no documented Explorer property that reports the exact SharePoint version represented by the local file.

    The reported path lengths are below the documented 400-character decoded-path limit. The 205,584 items are also below Microsoft’s recommended 300,000-item sync threshold, but that recommendation is cumulative across all synced libraries and OneDrive shortcuts. Therefore, the total number of items synced on each affected device should still be recorded:

    SharePoint limits - Service Descriptions

    There is no documented public diagnostic view that maps “Downloading, 5 files, 0.0 KB remaining” to an exact per-file queue, and Microsoft does not publish a supported public decoder for OneDrive’s binary .odl logs. Please preserve the .odl files and SyncDiagnostics.log without modifying them, and record the exact UTC reproduction time so Microsoft Support can correlate the event.

    Since the Sync Health dashboard had not reported since November 26 while the issue was reproduced on November 30, the “0 reported errors” result should not be treated as confirmation that the failing tests were successfully uploaded to that dashboard.

    If the issue remains after the fresh-root and temporary-Windows-user tests, I recommend opening a support case and including:

    • Paired failing and working PML traces
    • Exact UTC reproduction times
    • Windows and OneDrive builds from both laptops
    • OneDrive device IDs
    • attrib, CldFlt, fltmc filters, and fltmc instances output
    • Relevant .odl files and SyncDiagnostics.log
    • Results of the fresh-root and temporary-user tests
    • The affected SharePoint item URL and version history
    • The stale Sync Health reporting timestamp
    • A list of endpoint security, DLP, backup, and encryption products installed on each laptop

    You may refer to the following guide for detailed instructions on how to contact Microsoft Support and open a support case:

    Get support - Microsoft 365 admin | Microsoft Learn

    Your proposed pass condition is appropriate: the original laptop should hydrate a previously failing online-only file, receive a newly published SharePoint edit at the same verified Explorer path, and show content that matches the current server version. A green icon or a progress indicator reaching 100% alone would not be sufficient.

    I hope these tests help narrow the fault while preserving the existing Windows profile. Should you have any further questions, please feel free to let me know.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-30T12:10:32.1466667+00:00

    No public OneDrive view or documented .odl decoder exposes the exact item behind “Downloading, 5 files, 0 bytes remaining,” so the next supported path is to capture a tightly timed failing/working comparison and use it to isolate the Cloud Files layer, OneDrive process, or local sync root.

    Capture the same hydration operation on both laptops

    Use the known 156-KB online-only workbook and record:

    • UTC start and failure/success time.
    • Full local path.
    • Windows build from winver.
    • OneDrive version from OneDrive → Help & Settings → Settings → About.
    • OneDrive device ID from the same About page.
    • Whether the file is online-only before testing.

    Run these commands in Command Prompt on each laptop:

    attrib "C:\OD\path\template.xlsx"
    sc query CldFlt
    reg query HKLM\SYSTEM\CurrentControlSet\Services\CldFlt /v Start
    fltmc filters
    

    attrib is Microsoft’s documented way to query Files On-Demand state; U represents unpinned/online-only and P represents pinned. The Windows Cloud Files Filter Driver should have startup value 2 when Files On-Demand is enabled.^1^

    Do not change the registry yet. Compare:

    • CldFlt service state and start value.
    • fltmc filters output, especially antivirus, DLP, encryption, backup, or other filesystem filters present only on the failing laptop.
    • The placeholder attributes before and after opening.

    Files On-Demand hydration passes through cldflt.sys; other filesystem minifilters, particularly security filters, can participate in the same file-open path.^2^

    Capture Process Monitor evidence

    Process Monitor can record filesystem, Registry, process/thread activity, operation results, and call stacks.^3^

    On each laptop:

    1. Run Process Monitor as administrator.
    2. Stop capture and clear existing events.
    3. Add a filter: Path → contains → the exact workbook filename → Include.
    4. Do not initially filter by process; hydration can involve Explorer, OneDrive, Office, and system components.
    5. Start capture.
    6. Open the online-only file once from Explorer, or perform the same direct read used in the original test.
    7. Stop capture immediately after success or 0x8007017F.
    8. Save as native PML, preserving stack data.
    9. Note the first failing operation and its Process Name, Operation, Result, Detail, and Stack.

    The comparison is more useful than interpreting the HRESULT alone:

    • Failure under OneDrive.exe after network activity points toward the provider/download-validation path.
    • Failure involving System/cldflt.sys or another minifilter before meaningful OneDrive activity points toward the local Cloud Files/filter path.
    • Successful hydration on the clean laptop supplies the expected operation sequence.

    Microsoft does not publish a schema for interpreting OneDrive’s binary .odl files, and the documented Windows OneDrive diagnostic events primarily cover setup, updater, component-install, and overlay status rather than a named per-file transfer queue.^4^ Preserve the .odl files and SyncDiagnostics.log unchanged for Microsoft Support rather than attempting to modify or clean them.

    In-place repair sequence

    Since /reset and reconnecting the library did not change the result, do not repeat them against the same local root.

    1. Protect local-only changes first. Copy any locally modified or pending files outside every OneDrive sync root. Do not delete the existing C:\OD tree.
    2. Repair protected Windows components, because cldflt.sys belongs to the Windows Cloud Files platform:
    DISM.exe /Online /Cleanup-Image /RestoreHealth
    sfc /scannow
    

    Run these from an elevated Command Prompt, reboot, and retest the single placeholder. DISM repairs the Windows component store, while SFC verifies and repairs protected system files.^5^

    1. If the previous reconnect reused C:\OD, test a genuinely fresh sync root. After safeguarding edits, stop syncing, rename the old folder, and reconnect into an empty path. Microsoft specifically recommends renaming the retained old folder before resyncing so the new relationship receives fresh data.^6^
      • Works in the fresh root: the fault is tied to the previous local sync-root metadata/placeholders.
      • Still fails: prioritize Windows Cloud Files, filter-driver, or OneDrive-client tracing.

    Do not apply the old Windows 10 version 2004 CldFlt\Instances registry workaround: that article is explicitly for a historical Windows 10 2004 issue and does not establish applicability to Windows 11 26H2.^7^

    Verify stale copies independently of badges

    There is no documented local property that identifies the exact SharePoint version delivered by OneDrive. For each stale-file report:

    1. Confirm that Explorer and SharePoint refer to the same library, folder, filename, and item—not an old or duplicate sync path.
    2. Close the local file completely.
    3. Download the current SharePoint version through the browser.
    4. Compare hashes:
    Get-FileHash "C:\OD\path\workbook.xlsx" -Algorithm SHA256
    Get-FileHash "C:\Temp\web-download\workbook.xlsx" -Algorithm SHA256
    
    1. Compare SharePoint version history and document metadata if the hashes differ.
    2. After repair, modify the test file online, wait for sync, close/reopen the Explorer copy, and repeat the hash comparison.

    Your 152–195 character decoded paths are below SharePoint and OneDrive’s documented 400-character decoded-path limit. The observed 205,584 items are below the recommended 300,000 sync threshold, although the threshold applies across all libraries being synced and shortcuts, so total device scope should still be counted.^8^

    Build status and escalation

    OneDrive 26.212.1029.0006 is listed in the Windows Production Ring, but its release note contains only general reliability wording; it does not identify an 0x8007017F regression.^9^ The Windows 11 26H2 known-issues page likewise does not list this OneDrive symptom.^10^

    Open a Microsoft 365 business support case with:

    • Paired failing/working PML traces.
    • Exact UTC reproduction times.
    • Both Windows and OneDrive builds.
    • attrib, sc query CldFlt, registry query, and fltmc filters outputs.
    • Relevant .odl files and SyncDiagnostics.log.
    • OneDrive device IDs and the stale Sync Health reporting timestamp.
    • The affected SharePoint item URL/version history, without posting tenant-sensitive data publicly.

    The pass condition should remain the end-to-end test you defined: hydrate a previously failing placeholder, publish a new SharePoint edit, receive it at the same Explorer path, and verify the closed local content—not merely the badge or progress indicator.


    References

    1. Query and set Files On-Demand states in Windows
    2. Build a Cloud Sync Engine that Supports Placeholder Files
    3. Process Monitor v4.13
    4. Required diagnostic events and fields for Windows 10, versions 22H2 and 21H2
    5. Fix Windows Update corruptions and installation failures
    6. Resolve sync issues in OneDrive for work or school
    7. Issues using OneDrive Files On-Demand on some devices after updating to Windows 10, version 2004 | Microsoft Support
    8. SharePoint limits
    9. OneDrive Sync release notes - SharePoint in Microsoft 365 | Microsoft Learn
    10. Windows 11, version 26H2 known issues and notifications | Microsoft Learn
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.