ERROR_COMPRESSED_FILE_NOT_SUPPORTED - 335 (0x14F)

An operation is not supported on a compressed file.

Updated: Feb 21, 2026

Technical Meaning

The ERROR_COMPRESSED_FILE_NOT_SUPPORTED error code indicates that a specific operation attempted on a compressed file is not supported by the system or application. This error typically arises when an API function encounters a compressed file and cannot perform the requested action.

Error Details

This error is categorized under capability depth, meaning it pertains to the limitations of the system in handling certain operations on compressed files. The operation that fails due to this error could be any attempt to modify or access properties of a compressed file, such as renaming, deleting, or changing permissions.

Usage Context

The ERROR_COMPRESSED_FILE_NOT_SUPPORTED is commonly encountered when using APIs like SetFileAttributes, DeleteFile, or other functions that operate on files and directories. If these operations are attempted on a compressed file, the system will return this error code to indicate that the operation cannot be performed.

Developer Interpretation

Developers should interpret this error as an indication that the requested operation is not supported for compressed files in the current context. This could mean that the API function does not support operations on compressed files or that the file system driver does not provide the necessary functionality to perform the specified action on a compressed file.

Related Errors

FAQ

Q: Can this error be resolved by decompressing the file?

A: Yes, if the operation can be performed on an uncompressed version of the file, decompressing it and then performing the desired action may resolve the issue.

Q: Is there a way to check if a file is compressed before attempting operations?

A: Yes, you can use functions like GetFileAttributes or FindFirstFile to determine if a file is compressed. If the file attributes indicate compression, avoid performing unsupported operations on it.

Summary

The ERROR_COMPRESSED_FILE_NOT_SUPPORTED error code signifies that an operation attempted on a compressed file is not supported by the system. Developers should handle this error by either adjusting their operation context or decompressing the file before proceeding with the desired action.