String Variables in Orchestration: Use Quotation Marks when Assigning Initial Value
I just found another little gotcha when working with Orchestrations in BizTalk. If you create a variable that’s a string type and assign its initial value, you’ll want to make sure that you put quotation marks around the value. I failed to do so recently I had errors similar to these pop up when attempting to build the project:
identifier 'YOUR_VARIABLE_VALUE' does not exist in 'YOUR_ORCHESTRATION'; are you missing an assembly reference?
cannot find symbol 'YOUR_VARIABLE_VALUE'
This can be kind of confusing. Should you come across the same problem, the simple solution is to wrap the value in quotation marks, just as I had advised for orchestration filters in a previous article.