| Previous | Next |
| SL_E_LICENSE_FILE_NOT_INSTALLED | SL_E_RIGHT_NOT_GRANTED |
SL_E_VALUE_NOT_FOUND
How to interpret this HRESULT
When SL_E_VALUE_NOT_FOUND returns 0xC004F012, diagnosis has reached the local Software Protection Platform. Specifically, a requested key/value item is absent from the selected licensing object or policy store.
Windows reports “The Software Licensing Service reported that the call has failed because the value for the input key was not found”.
What to collect first
| property key, expected type and supplied type | Can caller identity and elevation be captured before changing state? |
| Code-specific distinction | Does the evidence support “record the key, object identity and query method and repair the producer rather than inventing a default value” rather than an object that exists but has the wrong data type? |
Checks in a useful order
- Record
0xC004F012, UTC time, caller and the first method or server request that returned it. - Capture first API/slmgr method and earliest Security-SPP event.
- Before remediation, confirm that the failure is not instead the neighboring condition: an object that exists but has the wrong data type.
REM Evidence context: SL_E_VALUE_NOT_FOUND
cscript %windir%\system32\slmgr.vbs /dlv
powershell -NoProfile -Command "Get-CimInstance SoftwareLicensingProduct | Where-Object PartialProductKey | Select Name,ApplicationID,ID,LicenseStatus,LicenseStatusReason,PartialProductKey"
Keep neighboring codes separate
| Result | Different condition |
|---|---|
SL_E_LICENSE_FILE_NOT_INSTALLED | the expected license file is not installed in the local licensing repository |
SL_E_RIGHT_NOT_GRANTED | the evaluated licenses do not grant the requested right to run or use the feature |
SL_E_PRODUCT_SKU_NOT_INSTALLED | the product SKU referenced by the operation has no installed license object |
A focused reproduction for this exact result
| Control | Design |
|---|---|
| Failing fixture | A management component queries a property not present in this license version. |
| Single variable | Change only property identity, declared type and supplied value. |
| Positive control | A schema-defined property accepts a value of the declared type. |
| Different result | If the experiment instead proves “the expected license file is not installed in the local licensing repository”, diagnose that condition separately rather than treating it as this HRESULT. |
Safe recovery direction
To correct this using supported mechanisms, record the key, object identity and query method and repair the producer rather than inventing a default value.
Technical references
- WMI properties and methods for volume activation.
- Slmgr.vbs options
- Troubleshoot Windows activation error codes
- MS-ERREF Windows Error Codes
Looking for a different code? Search another status or error code.