I have one scenario that at the end of the orchestration I will delivery notification to the client, one branch will send notification by SMS, another by email but both branches make user of one orchestration variable: UserProperties.
When using parallel shape inside orchestration that makes uses of a given orchestration variable, you can get a compiler error:
‘varName‘: if shared data is updated in a parallel then all references in every task must be in a synchronized or atomic scope
To solve this error you have to options:
If you want to use translations inside the branches you need to:
- Open Scope Properties of each branch
- Set “Synchronized” property to “True”
If you don’t need to use translations inside the branches!!
- Just set “Transaction Type” property to “None”
Tags: BizTalk | Orchestration | Errors and Warnings, Causes and Solutions