| Previous | Next |
| STATUS_CURRENT_DOMAIN_NOT_ALLOWED | STATUS_SYSTEM_SHUTDOWN |
STATUS_CANNOT_MAKE
Creation failed after the namespace request reached the file-system path
STATUS_CANNOT_MAKE reports that a file or directory cannot be created. It is intentionally broader than “name already exists”: Windows create/open APIs combine a pathname, desired access, sharing, attributes and a creation disposition that tells the file system whether to create, open, truncate or replace an object.
Preserve the complete create request. A caller using CREATE_NEW has different expectations from one using OPEN_ALWAYS; a directory create also has different file-system rules from a regular stream. The target volume can impose naming, feature or size restrictions, and remote file systems can enforce server-side namespace policy.
Do not immediately retry with a different filename and lose the failing parameters. First determine whether the problem follows the parent directory, the specific name, the volume or the requested create options. That split tells you whether to investigate namespace policy, file-system support or a race with another creator.
What to inspect
- The normalized target path, parent directory and exact creation disposition.
- File-versus-directory create options, requested attributes and target file system.
- Whether a simultaneous creator, rename or delete changed the namespace between lookup and create.
References
- Microsoft: Creating and Opening Files
- Microsoft: CreateFile
- Microsoft: Naming Files, Paths, and Namespaces
- Microsoft Open Specifications: NTSTATUS values
Looking for a different code? Search another status or error code.