Stay organized with collections
Save and categorize content based on your preferences.
You're viewing Apigee X documentation.
View
Apigee Edge documentation.
UnresolvedVariable
Error code
steps.httpmodifier.UnresolvedVariable
Error response body
{"fault":{"faultstring":"HTTPModifier[policy_name]: unable to resolve variable [variable_name]","detail":{"errorcode":"steps.httpmodifier.UnresolvedVariable"}}}
Cause
This error occurs if a variable specified in the HTTPModifier policy is either:
out of scope (not available in the specific flow where the policy is being executed) or
can't be resolved (is not defined)
Diagnosis
Identify the HTTPModifier policy where the error occurred and the name of the variable that is not available. You can find both of these items in the faultstring element of the error response.
For example, in the following faultstring, the policy name is googleBook and the variable is var:
"faultstring":"HTTPModifier[googleBook]: unable to resolve variable var"
In the failed HTTPModifier policy XML, verify that the name of the variable used matches the variable name identified in the fault string (step #1 above).
Determine if the variable is defined and available in the flow in which the HTTPModifier policy is being executed.
If the variable is either:
out of scope (not available in the specific flow where the policy is being executed) or
can't be resolved (is not defined)
then that's the cause for the error.
Check if the variable is defined in any of the policies that are executed before the HTTPModifier policy in the request flow. If the variable has not been defined, then you will receive the error code:
steps.httpmodifier.UnresolvedVariable
Resolution
Ensure that the variable referenced in the policy exists and is available in the specific flow, where the HTTPModifier policy is being executed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-10 UTC."],[[["This documentation addresses the `steps.httpmodifier.UnresolvedVariable` error in Apigee X, which occurs when a variable referenced in an HTTPModifier policy is either out of scope or undefined."],["The error's `faultstring` provides the policy name and the specific variable that could not be resolved, which can then be used to locate the source of the problem."],["Diagnosis involves confirming the variable name in the HTTPModifier policy XML, then checking whether the variable is defined and available in the current flow."],["The root cause is either the variable is not defined, or it exists but is not available in the flow where the HTTPModifier policy is executed."],["Resolution involves ensuring that the referenced variable exists and is accessible within the specific flow where the HTTPModifier policy is being executed, typically by defining it in a preceding policy."]]],[]]