How to recover from: "The cloud file metadata is corrupt and unreadable" ( Win32Error: ERROR_CLOUD_FILE_METADATA_CORRUPT(363) )

Stefan Angelov 26 Reputation points
2021-11-26T09:49:08.243+00:00

Greetings,

While developing an application that makes use of the Windows CldApi I have come to a situation where placeholder files/directories would become corrupt. Any attempt to work on them either through the Windows File Explorer or programmatically (via methods of the CldApi or Windows File api) results in the error message or exception (when doing this in code) : "The cloud file metadata is corrupt and unreadable", which seems to be Win32Error 363 - ERROR_CLOUD_FILE_METADATA_CORRUPT.

While I am still trying to find out what combination of events has lead to corrupting reparse data (I believe) I have not found a way to resolve the corruption, i.e. I cannot even delete the place holder files/folders under question.

I'd appreciate any pointers as to what mechanisms I could use to at least be able to delete the offending placeholders?

Regards,
Stefan

Windows development | Windows API - Win32
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel Sass 0 Reputation points
    2024-10-22T11:30:56.2866667+00:00

    This worked for me:

    1. Go to System > Recovery, Select Advanced startup
    2. Boot the machine into safe mode
    3. Run a "Command Prompt"
    4. Delete the files from the command prompt (rd /s ...)
    5. Restart and the files should be gone

    It seems like there is a file system filter that handles the cloud stuff which is not loaded when in safe mode, so you can safely remove the files there.

    0 comments No comments

Your answer

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