# Configuration variables not expanded while persisted to global variables from event handlers

**URL:** <https://www.finalbuilder.com/forums/t/configuration-variables-not-expanded-while-persisted-to-global-variables-from-event-handlers/7414>\
**Category:** Bugs\
**Tags:** fixed\
**Created:** [October 12, 2023, 6:03am UTC](https://www.finalbuilder.com/forums/t/configuration-variables-not-expanded-while-persisted-to-global-variables-from-event-handlers/7414 "2023-10-12T06:03:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktopaz](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/ktopaz/32/2390_2.png) [@ktopaz](https://www.finalbuilder.com/forums/u/ktopaz)\
**Post date:** [October 12, 2023, 6:03am UTC](https://www.finalbuilder.com/forums/t/configuration-variables-not-expanded-while-persisted-to-global-variables-from-event-handlers/7414/1 "2023-10-12T06:03:28Z")

</div>

Hi Guys,

We’ve recently upgraded to 1.9.2.1185  
Since then - when a build is persisting a global scope variable using a persist event handler and a variable in the “new value” field - the variable is NOT expanded when the persist operation occurs:

We’re using “update value” for persist and in “new value” we have a configuration variable  
(this should set the global variable to use the same value as in the configuration variable)  
“Expand variable references in new value” is of course - checked.  
But the end result is: the Global Variable holds the string “%ConfigVariable%” (Without the double quotes) instead of holding the expanded value of that variable.

This behavior breaks some of our flows, we use global variables to set/unset some flags that affect all of our builds (we have an intricate set of global flags and configuration conditions that allow us global control over most of our configurations)

Could you kindly look into this?

-

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [October 12, 2023, 8:15am UTC](https://www.finalbuilder.com/forums/t/configuration-variables-not-expanded-while-persisted-to-global-variables-from-event-handlers/7414/2 "2023-10-12T08:15:03Z")

</div>

Thanks for reporting this Arik, we’ve reproduced the issue and fixed it by adding back some lines of code which somehow got deleted. We’ll have a new version out soon.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [October 12, 2023, 8:59am UTC](https://www.finalbuilder.com/forums/t/configuration-variables-not-expanded-while-persisted-to-global-variables-from-event-handlers/7414/3 "2023-10-12T08:59:48Z")

</div>

Fixed in [v1.9.2.1199](https://www.finalbuilder.com/forums/t/continua-ci-v1-9-2-1199-released/7415).
