Site icon EfmSoft

What does HRESULT 0x87C51004 (UTC_E_SCRIPT_TYPE_INVALID) mean?

 
Previous Next
UTC_E_AOT_NOT_RUNNING UTC_E_SCENARIODEF_NOT_FOUND

UTC_E_SCRIPT_TYPE_INVALID

Read this as a lifecycle result: RunScriptAction type discriminator

UTC_E_SCRIPT_TYPE_INVALID has the unsigned value 0x87C51004. In UTC it comes from scenario action execution, where RunScriptAction type discriminator owns the decision. Treat this HRESULT as a state-machine report, not as a generic telemetry outage for this HRESULT. The immediate contract failed because the scenario requested a script engine or script-kind value that the installed client does not accept, so diagnosis should remain at that boundary until a controlled comparison crosses it for this HRESULT.

Scenario actions run under service-controlled identity, timeout and cancellation rules for this HRESULT. The useful evidence is the exact action instance and its child process or script state, not a later generic service event for this HRESULT. stdout, stderr and native exit values should be retained separately from the UTC HRESULT for this HRESULT. Record the configuration package or scenario generation together with the Windows build; otherwise a repaired file can be tested against a stale in-memory graph and appear to fail for the same reason for this HRESULT.

Diagnostic record

UTC diagnostic fieldValue
Owning state or objectRunScriptAction type discriminator
Producing layerscenario action execution
Do not confuse withUTC_E_UNAPPROVED_SCRIPT means the type is recognized but policy does not approve that script
Decisive evidencescenario action XML, script type token, schema version, file extension and target Windows build
Narrow comparisonreplace only the type token with one accepted by the same client while keeping script contents unchanged

The AllStat message names the immediate condition as “RunScriptAction contains an invalid script type” for this HRESULT. In practice, the useful extension is to ask whether the request was rejected before any side effect, after partial setup, or during cleanup for this HRESULT. Verify the existence and ownership of the expected output—session, directory, process, result object or emitted event—rather than assuming the message describes the final system state for this HRESULT.

Isolate one changing condition

  1. Export the relevant Microsoft-Windows-UniversalTelemetryClient/Operational events and preserve their ActivityId or request correlation alongside this result.
  2. Capture scenario action XML, script type token, schema version, file extension and target Windows build for this HRESULT. Do this before restarting the service or deleting any working directory for this HRESULT.
  3. Perform this one-variable comparison: replace only the type token with one accepted by the same client while keeping script contents unchanged for this HRESULT.
  4. After the comparison, record the next HRESULT and whether the requested session, action, trigger or output object was actually created for this HRESULT.

The most informative neighbor is UTC_E_UNAPPROVED_SCRIPT. The distinction is concrete: UTC_E_UNAPPROVED_SCRIPT means the type is recognized but policy does not approve that script for this HRESULT. Keeping both symbolic names in logs prevents a broad “DiagTrack error” bucket from hiding whether the failure occurred during parsing, authorization, resource acquisition, execution or teardown for this HRESULT.

Child-action accounting

Keep process creation, job assignment, timeout, cancellation, exit code and output capture as separate timestamps for this HRESULT. That sequence reveals whether the child failed itself, was terminated by UTC or never started for this HRESULT.

Operational response

Regenerate the action using the supported DiagTrack schema and approved script form for this HRESULT. Apply that change only to the owning boundary for this HRESULT. A successful repair must make the controlled case cross this boundary while retaining the intended policy, trace providers, destination and security context for this HRESULT.

Deleting the working directory, killing all ETW sessions or retrying in a tight loop can suppress this result temporarily while leaving the underlying lifecycle defect intact for this HRESULT.

Technical references


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

Exit mobile version