Recursive variable substitution doesn't work if the variable name contains spaces and/or parentheses

I have the following variables configured for a project:

Name Value
TestVariable ```#{Variable name with spaces (and parens)}```
Variable name with spaces (and parens) ```Test value```

In my web.config file, I have a connection string with name TestVariable. After deploying, I would expect the connection string value to be Test value. However, it was #{Variable name with spaces (and parens)}.

This used to work fine in Octopus 2.5. I worked around by replacing the name of the variable with one that didn’t contain spaces or parens, so I’m not sure which one of the two is causing the problem.

Hi John,

Thanks for reaching out. The problem are the parenthesis, not the spaces. I’ve created a github issue for this .