# Bug: Password variable evaluating as regex in TFS Get action

**URL:** <https://www.finalbuilder.com/forums/t/bug-password-variable-evaluating-as-regex-in-tfs-get-action/3660>\
**Category:** Bugs\
**Created:** [April 6, 2017, 4:59am UTC](https://www.finalbuilder.com/forums/t/bug-password-variable-evaluating-as-regex-in-tfs-get-action/3660 "2017-04-06T04:59:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lysaer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/cc9497/32.png) [@lysaer](https://www.finalbuilder.com/forums/u/lysaer)\
**Post date:** [April 6, 2017, 4:59am UTC](https://www.finalbuilder.com/forums/t/bug-password-variable-evaluating-as-regex-in-tfs-get-action/3660/1 "2017-04-06T04:59:48Z")

</div>

FinalBuilder 8.0.0.2116   
 Windows Server 2008 R2 SP 1, Windows 7 SP 1   
  
 When trying to use specific credentials to connect to TFS in the Team Foundation Get action, it appears that the Password field is being evaluated as a regular expression rather than being treated as a straight text string. When executing the FinalBuilder Project, we receive this error:   
  
 Could not add username/password details:   
 Could not expand password : [Expression Error]: Expected . or % but got “$”. [SNIPPED] (majority of password redacted).   
  
  
 I have attached a screenshot of the error as well as the options screen where we are applying the username/password. We do have a workaround for our purposes for the time being but this needs to be corrected for long term usage and automation.   
  
 Edited: Removed part of password.

 ![__40347__ 0__TFSGetError.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/6/64ef2771bbeff9c408e5f6dcdf79437e8feb1bd0.jpeg)

 ![__40347__ 0__TFSGetError2.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/4c3581d96ee8d7718d588dbd3c4779cd241feb28.jpeg)

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [April 7, 2017, 1:17am UTC](https://www.finalbuilder.com/forums/t/bug-password-variable-evaluating-as-regex-in-tfs-get-action/3660/2 "2017-04-07T01:17:06Z")

</div>

HI Andy Johnson,   
  
 The password field in the action is expanding variables that it finds. Any % or $( will be treated as the start of a variable, and as your password seems to have a % and $ in it I suggest you escape these in the password your supplying to the action. To escape % you simply use %% to escape it. For $( its $$(.   
  
  
 In addition I suggest changing your password as some of it was copied in the error message posted here. I have updated your post to remove them, but you never know what has cached the values.
