| Previous | Next |
| WCM_E_NAMESPACENOTFOUND | WCM_E_STORECORRUPTED |
WCM_E_NAMESPACEALREADYREGISTERED
WCM_E_NAMESPACEALREADYREGISTERED is the failure HRESULT 0x80220015 (signed decimal -2145255403, unsigned decimal 2149711893). Its severity bit is 1, facility is 34 (FACILITY_STATE_MANAGEMENT), and the facility-specific code field is 0x0015.
AllStat records the Windows SDK description as “Namespace is already registered.”
What the HRESULT establishes
The namespace identity is already registered. The operation reached registration of a namespace stream whose identity is already present in the target store. The first branch to test is whether setup or servicing registers the same package twice; keep that separate from the possibility that two workers race with identical namespace identities.
Processing stage
At this boundary, capture incoming namespace identity and source package hash, then correlate it with existing registration identity and schema source. Assign ownership only after checking registration timestamps and process ownership.
Failure patterns to separate
- setup or servicing registers the same package twice
- two workers race with identical namespace identities
- a new package reuses an old name/version identity instead of declaring a new revision
- recovery repeats registration after losing only the caller-side success response
Capture these facts first
- incoming namespace identity and source package hash
- existing registration identity and schema source
- registration timestamps and process ownership
- whether existing metadata is byte-equivalent or conflicting
- target schema-store status before replacement decisions
A safe investigation order
- compare existing and incoming registrations before taking action
- treat equivalent registration as an idempotency case in the caller
- use supported servicing/versioning to replace changed metadata
- serialize registration operations per schema store
- avoid unregistering system namespaces as a generic collision fix
Recovery conditions
Do not blindly retry. Either use the existing matching namespace or resolve the identity/version conflict through the supported package lifecycle.
Do not confuse it with adjacent codes
WCM_E_DUPLICATENAME can arise inside metadata collections. NAMESPACEALREADYREGISTERED is specifically a collision at the namespace registration boundary.
Deployment example
A deployment wrapper times out after registration succeeded, then submits the same namespace stream again. The store correctly reports the duplicate identity.
Telemetry fields worth retaining
For operational telemetry, retain registration timestamps and process ownership; also record whether existing metadata is byte-equivalent or conflicting. Preserve a redacted summary of target schema-store status before replacement decisions; use a cryptographic hash when that evidence is a file, stream, or generated artifact.
Official Microsoft references.
- Microsoft: SMI error and success constants.
- Microsoft: Settings Management Infrastructure API.
- Microsoft: SMI interfaces.
- Microsoft: ISettingsEngine::GetNamespace.
- Microsoft: ISettingsContext::Deserialize.
Looking for a different code? Search another status or error code.