| Previous | Next |
| UTC_E_FILTER_VARIABLE_NOT_FOUND | UTC_E_FILTER_VERSION_MISMATCH |
UTC_E_FILTER_FUNCTION_RESTRICTED
Interpret the result in context: filter function context policy
UTC_E_FILTER_FUNCTION_RESTRICTED has the unsigned value 0x87C51048. In UTC it comes from scenario filter parser and evaluator, where filter function context policy owns the decision. Start by locating the exact scenario-engine boundary that emitted this Value. The immediate contract failed because the function exists but is forbidden in the current filter context or evaluation phase, so diagnosis should remain at that boundary until a controlled comparison crosses it for this HRESULT.
Build a minimal evidence set
| UTC diagnostic field | Value |
|---|---|
| Owning state or object | filter function context policy |
| Producing layer | scenario filter parser and evaluator |
| Do not confuse with | UTC_E_FILTER_INVALID_FUNCTION means the evaluator does not support the named function at all |
| Decisive evidence | function name, command context, scenario/destination, schema version and restriction rule |
| Narrow comparison | call the same function in an allowed context with identical argument values |
The AllStat message names the immediate condition as “Filter command is not allowed in the current context” 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.
Run an A/B check
- Associate this result with one request, one scenario version and one service process ID for this HRESULT.
- Save function name, command context, scenario/destination, schema version and restriction rule and the first lower-level HRESULT if one exists for this HRESULT.
- Change no policy, provider set or destination except for this test: call the same function in an allowed context with identical argument values for this HRESULT.
- Compare the produced artifacts and operational events, not only the top-level return Value.
The most informative neighbor is UTC_E_FILTER_INVALID_FUNCTION. The distinction is concrete: UTC_E_FILTER_INVALID_FUNCTION means the evaluator does not support the named function at all 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.
Typed-filter note
Save the filter after variable substitution and type inference, not only the authoring XML for this HRESULT. With this result, a visually plausible expression can still fail because the runtime command table, scope or operand types differ from the authoring tool for this HRESULT. Test with one synthetic event whose fields and types are known exactly for this HRESULT.
Safe remediation
Move the computation to an allowed phase or choose a permitted function 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.
- the same request now produces its documented success or nonfatal status without a second hidden retry
- the operational log shows one coherent request lifetime and no orphaned action, timer, process or trace session
- teardown followed by a second run does not reuse stale state or recreate filter function context policy
- the nearby condition remains distinguishable: UTC_E_FILTER_INVALID_FUNCTION means the evaluator does not support the named function at all
Technical references
- Microsoft Open Specifications: Windows error-code registry — reference for scenario filter parser and evaluator while interpreting this result.
- Microsoft: Universal Telemetry Client configuration diagnosis — reference for scenario filter parser and evaluator while interpreting it.
- Microsoft: Windows Event Log query schema
- Microsoft: Querying Windows Event Log
Looking for a different code? Search another status or error code.