I am using an Extract Variable policy to extract a query parameter and save it in a variable called ‘var.colour’. If I try to extract the same query parameter (or even a different one, it doesn’t matter) into another variable called ‘var.colour.hue’, Apigee does not set the second variable and returns an error. This is what we see in the trace:
As you notice, Apigee has no issue in saving the variable named ‘var.colour1’. Also, none of these variables would be created if there were another variable called ‘var’.
Below is the error we see.
{
"fault": {
"faultstring": "Failed to set variable var.colour.again value blue from ExtractVariables: Extract-Variable",
"detail": {
"errorcode": "steps.extractvariables.SetVariableFailed"
}
}
}
So basically, I can name a variable with a dot in the name (e.g. variable.name) without any issues, but if another variable name contains the same variable name in it (e.g. variable.name.1), it fails.
I found this by accident and saw that this has not been documented in Apigee Docs. Can someone validate this and confirm if this is an issue or if this is by design?
