What does HRESULT 0xC004F012 (SL_E_VALUE_NOT_FOUND) mean?

 
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 typeCan caller identity and elevation be captured before changing state?
Code-specific distinctionDoes 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

  1. Record 0xC004F012, UTC time, caller and the first method or server request that returned it.
  2. Capture first API/slmgr method and earliest Security-SPP event.
  3. 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

ResultDifferent condition
SL_E_LICENSE_FILE_NOT_INSTALLEDthe expected license file is not installed in the local licensing repository
SL_E_RIGHT_NOT_GRANTEDthe evaluated licenses do not grant the requested right to run or use the feature
SL_E_PRODUCT_SKU_NOT_INSTALLEDthe product SKU referenced by the operation has no installed license object

A focused reproduction for this exact result

ControlDesign
Failing fixtureA management component queries a property not present in this license version.
Single variableChange only property identity, declared type and supplied value.
Positive controlA schema-defined property accepts a value of the declared type.
Different resultIf 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


Looking for a different code? Search another status or error code.