# Passing boolean variable from Continua to FinalBuilder

**URL:** https://www.finalbuilder.com/forums/t/passing-boolean-variable-from-continua-to-finalbuilder/5234
**Category:** Discussion
**Created:** [September 17, 2014, 12:07pm UTC](https://www.finalbuilder.com/forums/t/passing-boolean-variable-from-continua-to-finalbuilder/5234 "2014-09-17T12:07:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lcoursey](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@lcoursey](https://www.finalbuilder.com/forums/u/lcoursey)
#### Post date: [September 17, 2014, 12:07pm UTC](https://www.finalbuilder.com/forums/t/passing-boolean-variable-from-continua-to-finalbuilder/5234/1 "2014-09-17T12:07:28Z")

</div>

Hi,  
  
I’m having trouble passing a boolean from Continua to FinalBuilder. I have configuration variables prompting for boolean values (using text \> single checkbox), and in my build runner stage for my fb project I am passing these variables to my fb project using VARIABLE\_NAME = $Configuration.CONFIG\_VARIABLE%. My build is failing with this error:  
  
**@@log{message status=error, value=Error setting variables : Variable VARIABLE\_NAME Is of Type Boolean  
Failed to set the value : Could not convert variant of type (UnicodeString) into type (Boolean) }**  
  
I have the finalbuilder project variable set to ‘boolean’ type, but it seems to think my Continua config variable is a string type, even though I’m using the ‘single checkbox’ prompt. Is this a bug or am I missing something? Is there another way to prompt for a boolean variable? Single checkbox doesn’t seem to work for me.  
  
Regards,

---

<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: [September 18, 2014, 8:18am UTC](https://www.finalbuilder.com/forums/t/passing-boolean-variable-from-continua-to-finalbuilder/5234/2 "2014-09-18T08:18:24Z")

</div>

Hi Luke,  
  
We have not been able to reproduce this. Which versions of Continua and FinalBuilder are you using? Can you send copy of the build log?

---

<div class="post-metadata">

### Author: ![lcoursey](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@lcoursey](https://www.finalbuilder.com/forums/u/lcoursey)
#### Post date: [September 18, 2014, 11:19am UTC](https://www.finalbuilder.com/forums/t/passing-boolean-variable-from-continua-to-finalbuilder/5234/3 "2014-09-18T11:19:44Z")

</div>

Hi Dave,  
  
I am using FB 7.0.0.2671 and Continua 1.5.0.289. I’ve pasted log file below. Setting a string variable works fine, but the boolean fails.&nbsp;  
I’ve double checked my project variables in finalbuilder and they are definitely set to boolean type. I’ve noticed I have an outdated finalbuilder version so I will try updating that now.  
  
Thanks,  
Luke  
  
  
**10:50:35 &nbsp;Stage: Build  
10:50:41 &nbsp; Server To Agent Workspace Sync  
10:50:41 &nbsp; Started syncing files from the server[localhost] to the agent [UKVIR02111]  
10:50:41 &nbsp; Finished syncing files from the server [localhost] to the agent [UKVIR02111].  
10:50:46 &nbsp; FinalBuilder [TrainingManuals.fbp7]  
10:50:46 &nbsp; Parameters  
10:50:46 &nbsp; Working Directory: E:\Working\CIAgent\Ws\1\Source\INTR\_FinalBuilder\FinalBuilder\_Projects  
10:50:46 &nbsp; Executable: C:\Program Files (x86)\FinalBuilder 7\FBCMD.exe  
10:50:46 &nbsp; Arguments: /B -@ -@CE:\Working\CIAgent\Ws\1\triggerfiles.xml /vMANUAL\_TITLE=$Configuration.MANUAL\_TITLE$;COPY\_DOCBOOK\_FILE\_TO\_NETWORK=$Configuration.COPY\_DOCBOOK\_FILE\_TO\_NETWORK$;IMAGE\_FILENAME\_IN\_CAPTION=$Configuration.IMAGE\_FILENAME\_IN\_CAPTION$; /pE:\Working\CIAgent\Ws\1\Source\INTR\_FinalBuilder\FinalBuilder\_Projects\TrainingManuals.fbp7  
10:50:46 &nbsp; Variable [MANUAL\_TITLE] set to [$Configuration.MANUAL\_TITLE$]  
10:50:46 &nbsp; @@log{message status=error, value=Error setting variables : Variable COPY\_DOCBOOK\_FILE\_TO\_NETWORK Is of Type Boolean  
10:50:46 &nbsp; Failed to set the value : Could not convert variant of type (UnicodeString) into type (Boolean) }  
10:50:46 &nbsp;   
10:50:46 &nbsp;   
10:50:46 &nbsp; Exit with return code: 14 (ERRORSETTINGVARIABLE)  
10:50:46 &nbsp;   
10:50:59 &nbsp; Agent To Server Workspace Sync  
10:50:59 &nbsp; Started syncing files from the agent to the server.  
10:50:59 &nbsp; Finished syncing files from the agent to the server.  
10:51:00 &nbsp; Artifacts Registration  
10:51:00 &nbsp; Started registering artifacts  
10:51:00 &nbsp; Finished registering artifacts**

---

<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: [September 19, 2014, 12:42pm UTC](https://www.finalbuilder.com/forums/t/passing-boolean-variable-from-continua-to-finalbuilder/5234/4 "2014-09-19T12:42:28Z")

</div>

Hi Luke,  
  
You need to use the % character for variables e.g. %Configuration.MANUAL\_TITLE% or simply %MANUAL\_TITLE%. I looks like you are entering&nbsp;$Configuration.MANUAL\_TITLE$ which is not being interpreted and is sent to FinalBuilder as is.

---

<div class="post-metadata">

### Author: ![lcoursey](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@lcoursey](https://www.finalbuilder.com/forums/u/lcoursey)
#### Post date: [September 22, 2014, 1:25am UTC](https://www.finalbuilder.com/forums/t/passing-boolean-variable-from-continua-to-finalbuilder/5234/5 "2014-09-22T01:25:02Z")

</div>

Hi Dave,  
  
Ah, that was stupid of me, thanks for spotting that, it seems to have resolved the issue.  
I have a new problem however running the build after upgrading my finalbuilder application version. I have posted a new thread for this.  
  
Regards,
