Hi Team,
After compilation of each project, we will assign the compilation log to another one variable(For Ex: var1) . Compilation log contains some variable formats as mentioned below.
$(some text)
%some text here%
Actual compilation log:
some warnings and errors here.
some other texts $(some text) and %some text here%
end of file.
But actually they are not variables. Part of the compilation log. Since FB considering them as variables, automation getting failed like “Error setting variable var1 - variable: some text - does not exist!”
*Note: For ‘Set Variable’ action we can avoid Expand expression by uncheck that checkbox. But for my case, i need to pass that variable(var1) as parameter to another one action.
Is there any solution to solve this issue if variable’s content contains the formats as mentioned above?
Thanks,
Kathir.
Hi Kathir,
Once the variable is set using “Set Variable” with the “expand expression” turned off. You can use the string replace action to change all % to %% so that they will be escaped. The same goes for $( as it can be replaced with $$(.
When they are written to the log, or displayed in output the escapes are converted to the values they are escaping. E.g. %% will translate back to % when logging a message.
Hi Jason,
Thanks for your answer.
I have solved this issue by using ‘!’(exclamation) symbol with the corresponding variables.
For Ex: %var1% => %!var1%.
Anyway i will try your answer too.
Regards,
Kathir.