# Echoing a variable doesnt work anymore

**URL:** https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375
**Category:** Bugs
**Created:** [July 4, 2023, 10:35am UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375 "2023-07-04T10:35:58Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 10:35am UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/1 "2023-07-04T10:35:58Z")

</div>

Hi There,  
we use CI Version 1.9.2.1106. In the first Step of our Configuration we start a Commandline which includes a few Variables. Like that:

set BuildVersion=%VerProject%.%VerBuild%.0.%VerRevision%  
echo @@continua[setVariable name=‘DelphiVersion’ value=‘D28’]  
echo @@continua[setVariable name=‘DelphiAgentVersion’ value=‘D113’]

Continua Log:  
C:\CI\_AWS\Ws\33743\Source\source\>echo @@continua[setVariable name=‘DelphiVersion’ value=‘D28’]  
Variable ‘%delphiversion%’ has been set to ‘D28’.

C:\CI\_AWS\Ws\33743\Source\source\>echo @@continua[setVariable name=‘DelphiAgentVersion’ value=‘D113’]  
Variable ‘%delphiagentversion%’ has been set to ‘D113’.

That works fine for years.  
After Updating CI to the latest Version it stopps Working.  
Log shows setting the new Values to the variables is korrekt.  
But the Variable-Values in CI System doesnt update.

---

<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: [July 4, 2023, 11:26am UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/2 "2023-07-04T11:26:53Z")

</div>

Hi Sascha,

Setting variables appears to be working for us, see screenshot below:

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/1/107690e8c448d794cc6537d3dec92f745b31c41c.png)

What is the Type for each of the DelphiVersion and DelphiAgentVersion variables?

Can you send us a copy of your build log? Send it either as a direct message to me (click on my avatar) or by email to `support at finalbuilder.com`.

Which version of Continua did you upgrade from?

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 12:29pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/3 "2023-07-04T12:29:25Z")

</div>

Hi,

i dont know exactly the CI version before Updated.  
Can i check it in any Log or older Build?

Both Types are Text an no Prompt:  
 ![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/a/ae7817a71c608e4f162487aa20c4f6018bf175fb.png)

I Send You the 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: [July 4, 2023, 1:21pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/4 "2023-07-04T13:21:39Z")

</div>

Thanks for sending the log, but we don’t see where you are actually using the variable values.

> [@sascha.isensee](#):
>
> But the Variable-Values in CI System doesnt update.

Where can you see that they are not updated?

Note that [build variables](https://wiki.finalbuilder.com/display/continua/Variables#Variables-BuildVariables) which are available during the build process, and are set when using Set Variable actions and set-variable log messages, are discarded at the end of the build. This has always been the case. The only way to keep the variable values after the build has finished is to use the [Persist Build Variables build event handler](https://wiki.finalbuilder.com/display/continua/Persist+Build+Variables) to store the value in configuration variables and project variables.

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 1:29pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/5 "2023-07-04T13:29:30Z")

</div>

![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/4dbbdfd00b5e7a88c7ed2ec962ffc82d4a2346f6.png)

---

<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: [July 4, 2023, 1:33pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/6 "2023-07-04T13:33:11Z")

</div>

The screenshot shows that the variables DelphiVersion and DelphiAgentVersion have the correct values. Am I missing something?

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 1:35pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/7 "2023-07-04T13:35:28Z")

</div>

In Post two you see, that we set the DelphiAgentVersion to “D113” in the batch. But the Build-Variable doesnt change and dont have a mark that it was updated

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 1:36pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/8 "2023-07-04T13:36:49Z")

</div>

Here you see an older Build with the CI Version before:

 ![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/1/17e722c4e39136bf3036639a55a0da278d580d66.png)

---

<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: [July 4, 2023, 1:46pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/9 "2023-07-04T13:46:12Z")

</div>

OK - I see your issue now, however I not able to reproduce it. Here’s our variables after running the build in the log above:

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/b/b00ab9d726452d01504cfd8a5820122b493c5548.png)

Are there any errors on the Event Log page in the Administration section?

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 1:49pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/10 "2023-07-04T13:49:30Z")

</div>

Do you set it with a batch like this?:  
 ![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/3/30b989e8508945127ca7698028661579d3c58775.png)

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 1:54pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/11 "2023-07-04T13:54:47Z")

</div>

Setting it with an Action doesnt work too…

 ![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/b/bd66054f972819f92808a8a2f4e35027c49bae07.png)

---

<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: [July 4, 2023, 1:55pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/12 "2023-07-04T13:55:39Z")

</div>

I used a .bat file, but your log shows the values are being set so it’s not the action that is causing the issue, something further on. We’ll do some further testing tomorrow. Perhaps you could export your configuration and send us that, so we can use that to reproduce.

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 1:56pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/13 "2023-07-04T13:56:57Z")

</div>

how can i export the configuration?  
and how can i enable deeper logging?

---

<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: [July 4, 2023, 1:57pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/14 "2023-07-04T13:57:19Z")

</div>

What do you se if you use a Log Entry action to log the values of the variables after the DOS Command action?

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 1:58pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/15 "2023-07-04T13:58:54Z")

</div>

![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/1/10cd16dd38a0df05158e95656ac8738407dceed6.png)

---

<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: [July 4, 2023, 1:59pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/16 "2023-07-04T13:59:42Z")

</div>

You can export the configuration in the Administration section under Import/Export. See [Debug Logging - Continua CI - VSoft Technologies Documentation Wiki](https://wiki.finalbuilder.com/display/continua/Debug+Logging) for details on enabling debug logging.

---

<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: [July 4, 2023, 2:01pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/17 "2023-07-04T14:01:36Z")

</div>

The Log Entry action is an action that you can add to the build stage

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/a/a5e39fc733117d6fc55b7cb6fca4d62bd694131a.png)

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 2:04pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/18 "2023-07-04T14:04:44Z")

</div>

![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/6/6c1daae54ce79c7471c36be9a246f383f6a8924b.png)

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 4, 2023, 2:09pm UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/19 "2023-07-04T14:09:26Z")

</div>

Here you see, that in the next step the variable is set to default

![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/b/b5471a781f96db4b161e2f7393c098580c34c4e9.png)

---

<div class="post-metadata">

### Author: ![sascha.isensee](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sascha.isensee](https://www.finalbuilder.com/forums/u/sascha.isensee)
#### Post date: [July 6, 2023, 10:06am UTC](https://www.finalbuilder.com/forums/t/echoing-a-variable-doesnt-work-anymore/7375/20 "2023-07-06T10:06:36Z")

</div>

Hi,  
the Fix you send me solve the Problem.  
Thx for your quick support.

Greets Sascha Isensee
