Thanks for getting in touch! Could you please confirm the Tentacle version on these environments is the same? We did change some ordering of the substitutions to be before the configurations, as the substitution syntax was causing invalid XML issues.
The presence of the expressions mean that the XML is initially invalid. That’s why we needed to change the order to have the Substitute in Files step run first (ensuring we have valid XML) before we can run the XML transforms.
There’s no way to specify the order at the moment, but no, we won’t be changing it again in future.
Until we can upgrade all our tentacles, whilst not ideal, I’ve specified both files in the “Substitute variables” section (web.config and web.Release.config). This will ensure all tentacles are transformed in the same way.