ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED - 326 (0x146)
Device does not support file-level TRIM.
Updated: Feb 21, 2026
Technical Background
The ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED error indicates that the underlying storage device does not support the file-level TRIM operation. This is a specific capability error related to disk management and optimization in Windows.
Error Details
- Error Name: ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED
- Numeric Code: 326 (0x146)
- Short Description: Device does not support file-level TRIM.
This error is returned when an attempt is made to perform a file-level TRIM operation on a volume that is not supported by the underlying storage device. File-level TRIM allows the operating system to inform the storage device which blocks of data are no longer in use, enabling the device to reclaim unused space more efficiently.
Common Causes
- Unsupported Storage Device: The storage device does not support file-level TRIM operations.
- Incorrect Volume Type: The volume on which the operation is attempted may be formatted with a file system that does not support TRIM.
- Driver or Firmware Limitations: The storage controller driver or firmware might not support file-level TRIM.
Real-World Context
This error can occur in various scenarios, such as when attempting to optimize disk performance by reclaiming unused space. It is important to ensure that the storage device and its drivers are up-to-date and compatible with the operating system's requirements for TRIM operations.
Is This Error Critical?
The criticality of this error depends on the specific operation being performed. If file-level TRIM is not supported, it may impact disk performance optimization but does not typically affect data integrity or system stability directly.
How to Diagnose
- Review Operation Context: Ensure that the volume in question supports TRIM operations and is formatted with a compatible file system (e.g., NTFS).
- Validate Parameters: Check if the operation parameters are correct and appropriate for the volume type.
- Confirm Object Types: Verify that the operation is being performed on a supported object type, such as a file or directory.
- Verify Input Data: Ensure that the input data is valid and does not contain unsupported operations.
- Check Limits or Constraints: Confirm that there are no system limits or constraints preventing the TRIM operation from being executed.
How to Resolve
- Correct Parameter Usage: Ensure that all parameters used in the TRIM operation are correct and appropriate for the volume type.
- Adjust Operation Context: If necessary, adjust the context of the operation to ensure compatibility with supported storage devices.
- Restore Data: In cases where data corruption might be a factor, restore the affected files or directories from backups if available.
- Retry Operation with Valid Inputs: Attempt to perform the TRIM operation again with valid inputs and in an appropriate context.
Developer Notes
When developing applications that interact with storage devices, it is crucial to check for device capabilities before attempting file-level TRIM operations. This can be done by querying the device's capabilities or using system APIs that provide information about supported operations.
Related Errors
ERROR_NOT_SUPPORTED(0x000006D9)ERROR_INVALID_FUNCTION(0x0000001F)
FAQ
Q: What does the ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED error mean?
A: This error indicates that the storage device does not support file-level TRIM operations.
Q: How can I determine if my storage device supports TRIM?
A: Check the documentation for your storage device or use system tools to query its capabilities.
Q: Can this error affect data integrity?
A: No, this error primarily affects disk performance optimization and does not impact data integrity directly.
Summary
The ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED error is a specific capability error indicating that the storage device does not support file-level TRIM operations. This can be diagnosed by reviewing operation context, validating parameters, confirming object types, verifying input data, and checking system limits. Proper handling of this error ensures optimal disk performance without compromising data integrity.