Passing boolean variable from Continua to FinalBuilder

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,

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?

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. 
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  Stage: Build
10:50:41   Server To Agent Workspace Sync
10:50:41   Started syncing files from the server[localhost] to the agent [UKVIR02111]
10:50:41   Finished syncing files from the server [localhost] to the agent [UKVIR02111].
10:50:46   FinalBuilder [TrainingManuals.fbp7]
10:50:46   Parameters
10:50:46   Working Directory: E:\Working\CIAgent\Ws\1\Source\INTR_FinalBuilder\FinalBuilder_Projects
10:50:46   Executable: C:\Program Files (x86)\FinalBuilder 7\FBCMD.exe
10:50:46   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   Variable [MANUAL_TITLE] set to [$Configuration.MANUAL_TITLE$]
10:50:46   @@log{message status=error, value=Error setting variables : Variable COPY_DOCBOOK_FILE_TO_NETWORK Is of Type Boolean
10:50:46   Failed to set the value : Could not convert variant of type (UnicodeString) into type (Boolean) }
10:50:46  
10:50:46  
10:50:46   Exit with return code: 14 (ERRORSETTINGVARIABLE)
10:50:46  
10:50:59   Agent To Server Workspace Sync
10:50:59   Started syncing files from the agent to the server.
10:50:59   Finished syncing files from the agent to the server.
10:51:00   Artifacts Registration
10:51:00   Started registering artifacts
10:51:00   Finished registering artifacts


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 $Configuration.MANUAL_TITLE$ which is not being interpreted and is sent to FinalBuilder as is.

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,