| Previous | Next |
| STATUS_DUPLICATE_OBJECTID | STATUS_CONVERT_TO_LARGE |
STATUS_OBJECTID_EXISTS
An object ID is already attached to this file or directory
FSCTL_SET_OBJECT_ID is not an overwrite operation. If the object already has an ID, assigning another one is rejected to protect the tracking relationships associated with the existing value.
First determine whether the current ID is correct. Deleting and replacing it can break distributed link tracking or application metadata, and Microsoft explicitly warns that arbitrary object-ID modification can cause data loss.
What to inspect
- Read the existing ID with FSCTL_GET_OBJECT_ID.
- Prefer create-or-get semantics when the caller only needs a stable identifier.
- Replace an ID only as part of a documented repair or restore operation with a verified backup.
References
- Microsoft: FSCTL_CREATE_OR_GET_OBJECT_ID
- Microsoft: FSCTL_SET_OBJECT_ID
- Microsoft: FILE_OBJECTID_BUFFER
- NTFS-3G: NTFS attributes, object IDs, DOS names and EAs
- Microsoft Open Specifications: NTSTATUS values
Looking for a different code? Search another status or error code.