| Previous | Next |
| WCM_E_STATENODENOTALLOWED | WCM_E_ATTRIBUTENOTALLOWED |
WCM_E_ATTRIBUTENOTFOUND
WCM_E_ATTRIBUTENOTFOUND is the failure HRESULT 0x80220003 (signed decimal -2145255421, unsigned decimal 2149711875). Its severity bit is 1, facility is 34 (FACILITY_STATE_MANAGEMENT), and the facility-specific code field is 0x0003.
AllStat records the Windows SDK description as “Attribute is not found.”
Documented meaning
The requested SMI attribute is absent. The operation reached attribute lookup on a settings item, namespace, or identity after the object itself was resolved. The first branch to test is whether the attribute is optional for this setting type or Windows version; keep that separate from the possibility that the caller used the display label instead of the schema attribute name.
Operation phase
At this boundary, capture object type and item path on which GetAttribute was called, then correlate it with exact attribute spelling and case supplied by the caller. Assign ownership only after checking all attributes enumerated for the resolved object.
Root-cause branches
- the attribute is optional for this setting type or Windows version
- the caller used the display label instead of the schema attribute name
- metadata was compiled without the expected attribute
- the operation queried an item attribute on a namespace object, or the reverse
Diagnostic record
- object type and item path on which GetAttribute was called
- exact attribute spelling and case supplied by the caller
- all attributes enumerated for the resolved object
- target OS build, namespace version, and schema source
- whether absence is expected for optional or legacy metadata
Correction workflow
- enumerate the object attributes before assuming a fixed set
- consult the SMI attribute definition for the current setting type
- treat optional absence explicitly instead of substituting an unrelated default
- open the correct namespace revision if the attribute is required by the workflow
- fix manifest generation when a required attribute is missing from compiled metadata
Retry policy
A retry without changing the object or metadata is pointless. Re-query only after opening the correct namespace or installing corrected schema data.
Nearby HRESULT distinctions
WCM_E_ATTRIBUTENOTALLOWED says the attribute is prohibited in that context. ATTRIBUTENOTFOUND says no such attribute is defined on the resolved object.
Concrete example
A tool expects a migration attribute on every setting, but a particular metadata item does not define it. Enumerating attributes reveals that the field is optional, not corrupted.
Operational logging
For operational telemetry, retain all attributes enumerated for the resolved object; also record target OS build, namespace version, and schema source. Preserve a redacted summary of whether absence is expected for optional or legacy metadata; 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: ISettingsItem::GetPath.
- Microsoft: ISettingsItem::RemoveSettingByPath.
Looking for a different code? Search another status or error code.