# Double backslashes are converted to a single one when variables are passed between builds

**URL:** https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057
**Category:** Bugs
**Created:** [August 18, 2016, 2:01am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057 "2016-08-18T02:01:55Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![miruna](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@miruna](https://www.finalbuilder.com/forums/u/miruna)
#### Post date: [August 18, 2016, 2:01am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057/1 "2016-08-18T02:01:55Z")

</div>

I have one build that starts a second one when it’s successful. One of the variables passed from the first build to the second one is a UNC path. The first build has the correct value starting with \. The second build only has one backslash, which, of course, causes all copy/move operations to fail. Using Continua 1.8.0.243

---

<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: [August 18, 2016, 3:23am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057/2 "2016-08-18T03:23:35Z")

</div>

Hi Miruna,  
  
We have not been able to reproduce this. I assume that you have mapped the variable in the trigger Variables tab - e.g. uncpathvar: %uncpathvar%? In our tests the variable is unchanged in the output from a Log Entry action and when used in a Copy action. Where can you see that the variable is changed? &nbsp;Can you send us your build log?

---

<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: [August 18, 2016, 3:25am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057/3 "2016-08-18T03:25:23Z")

</div>

Can you also let us know how the variable is set up?&nbsp;

---

<div class="post-metadata">

### Author: ![miruna](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@miruna](https://www.finalbuilder.com/forums/u/miruna)
#### Post date: [August 18, 2016, 6:19am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057/4 "2016-08-18T06:19:18Z")

</div>

I took a closer look. The value gets set in the first build from a FinalBuilder 8 script through a “Continua CI - Set Variable” action. This is actually where the slash is lost. The second build getting triggered from this one is irrelevant.   
  
 Continua log snippet containing the embedded FB log:   
  
 9:10:32 AMLog Variable Values [Variables: archiveLocation,buildDir]   
 9:10:32 AMCurrent variable values :   
 9:10:32 AMarchiveLocation = \v-buildserver\builds\Workflow\11.0 Builds\_SUCCEEDED   
 9:10:32 AMbuildDir = \v-buildserver\builds\Workflow\11.0 Builds   
 9:10:32 AMSuccess   
 9:10:32 AMContinua CI - Set Variable - [FinalBuilderScriptStatus]   
 9:10:11 AMVariable ‘%finalbuilderscriptstatus%’ has been set to ‘SUCCEEDED’.   
 9:10:32 AMContinua CI - Set Variable - [ArchiveLocation]   
 9:10:11 AMVariable ‘%archivelocation%’ has been set to ‘\v-buildserver\builds\Workflow\11.0 Builds\_SUCCEEDED’.   
  
 (Side note: i find it weird that the log lists actions with timestamps 20 seconds before the action above).   
  
 The “Continua CI - Set Variable” action just sets “archiveLocation” to FinalBuilder’s %archiveLocation%.   
  
 The FinalBuilder log itself looks like this:   
 @@continua[setvariable name=‘ArchiveLocation’, value=’\v-buildserver\builds\Workflow\11.0 Builds\_SUCCEEDED’ skipIfNotDefined=‘true’]

---

<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: [August 19, 2016, 2:40am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057/5 "2016-08-19T02:40:47Z")

</div>

Hi Miruna,  
  
Which version of FinalBuilder are you using? We adedd backslash escaping to the ContinuaCI logger for FinalBuilder in v8.0.0.1351 and v7.0.0.3472.&nbsp;

---

<div class="post-metadata">

### Author: ![miruna](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@miruna](https://www.finalbuilder.com/forums/u/miruna)
#### Post date: [August 19, 2016, 2:48am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057/6 "2016-08-19T02:48:25Z")

</div>

8.0.0.1432

---

<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: [August 19, 2016, 3:04am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057/7 "2016-08-19T03:04:00Z")

</div>

Hi Miruna,  
  
I checked with the Finalbuilder team and the fix was actually implemented four weeks ago so you would need to install the latest version&nbsp;8.0.0.1864.

---

<div class="post-metadata">

### Author: ![miruna](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@miruna](https://www.finalbuilder.com/forums/u/miruna)
#### Post date: [August 19, 2016, 3:08am UTC](https://www.finalbuilder.com/forums/t/double-backslashes-are-converted-to-a-single-one-when-variables-are-passed-between-builds/6057/8 "2016-08-19T03:08:30Z")

</div>

Will do. Thanks for looking into it.
