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?

and

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.

Advertisements

About Ed Jones

Ed is a Connected Systems and .NET Specialist for RBA in the Twin Cities. Contact Ed

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: