fuori ambito (non disponibile nel flusso specifico in cui viene eseguito il criterio) o
non può essere risolto (non è definito)
Diagnosi
Identifica il criterio HTTPModifier in cui si è verificato l'errore e il nome della variabile non disponibile. Puoi trovare entrambi questi elementi nell'elemento faultstring della risposta all'errore.
Ad esempio, nel seguente faultstring, il nome del criterio è googleBook e la variabile è var:
"faultstring":"HTTPModifier[googleBook]: unable to resolve variable var"
Nel file XML del criterio HTTPModifier non riuscito, verifica che il nome della variabile utilizzata corrisponda a quello identificato nella stringa di errore (passaggio 1 sopra).
Determina se la variabile è definita e disponibile nel flusso in cui viene eseguito il criterio HTTPModifier.
Se la variabile è:
fuori ambito (non disponibile nel flusso specifico in cui viene eseguito il criterio) o
non può essere risolto (non è definito)
allora è la causa dell'errore.
Controlla se la variabile è definita in uno dei criteri eseguiti prima del criterio HTTPModifier nel flusso di richiesta. Se la variabile non è stata definita, riceverai il codice di errore:
steps.httpmodifier.UnresolvedVariable
Risoluzione
Assicurati che la variabile a cui viene fatto riferimento nel criterio esista ed è disponibile nel flusso specifico in cui viene eseguito il criterio HTTPModifier.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-03-12 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."]]],[]]