# String variable inserted into message body fail if contains %

**URL:** https://www.finalbuilder.com/forums/t/string-variable-inserted-into-message-body-fail-if-contains/2312
**Category:** Discussion
**Created:** [September 29, 2014, 6:32am UTC](https://www.finalbuilder.com/forums/t/string-variable-inserted-into-message-body-fail-if-contains/2312 "2014-09-29T06:32:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![darian](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/darian/32/2195_2.png) [@darian](https://www.finalbuilder.com/forums/u/darian)
#### Post date: [September 29, 2014, 6:32am UTC](https://www.finalbuilder.com/forums/t/string-variable-inserted-into-message-body-fail-if-contains/2312/1 "2014-09-29T06:32:49Z")

</div>

- I am integrating a JMeter test suite within the build by executing JMeter via a batch file and adding an “Output Monitor” to search for “summary =” and “Save last match to variable” to the variable “DMS\_JMETER\_SUMMARY”  
  
- After JMeter completes, I “Log Variable Values” for this particular variable and this is from the log:  
DMS\_JMETER\_SUMMARY = summary =&nbsp;&nbsp;&nbsp;&nbsp; 12 in&nbsp;&nbsp;&nbsp;&nbsp; 3s =&nbsp;&nbsp;&nbsp; 4.0/s Avg:&nbsp;&nbsp; 248 Min:&nbsp;&nbsp; 199 Max:&nbsp;&nbsp; 729 Err:&nbsp;&nbsp;&nbsp;&nbsp; 0 (0.00%)  
  
- I then do a “Text Find” action where I “Search in variable contents” of the DMS\_JMETER\_SUMMARY variable for the Search String (0.00%%) to ensure there are 0 failures, and this passes.  
  
- At the end of script, I have a “Send Email” action and within the Body I have some other variables which work fine in the body, but if I include this %DMS\_JMETER\_SUMMARY% within the body, the Send Email action fails with the error “Unable to Set Body”&nbsp; "Missing % after

---

<div class="post-metadata">

### Author: ![darian](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/darian/32/2195_2.png) [@darian](https://www.finalbuilder.com/forums/u/darian)
#### Post date: [September 29, 2014, 6:35am UTC](https://www.finalbuilder.com/forums/t/string-variable-inserted-into-message-body-fail-if-contains/2312/2 "2014-09-29T06:35:50Z")

</div>

The forum message converted a colon + right-parenthesis combination into a emoticon…

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 30, 2014, 12:20pm UTC](https://www.finalbuilder.com/forums/t/string-variable-inserted-into-message-body-fail-if-contains/2312/3 "2014-09-30T12:20:30Z")

</div>

Hi Darian   
  
 You can disable recursive variable expansion using a ! after the first %, - %!DMS\_JMETER\_SUMMARY%   
  
 [http://help.finalbuilder.com/variable\_evaluation\_and\_recurs.htm](http://help.finalbuilder.com/variable_evaluation_and_recurs.htm)
