BizTalk Orchestration Error Message – Using Parallel Action – if shared data is updated in a parallel then all references in every task must be in a synchronized or atomic scope

Posted: January 17, 2011 in BizTalk
Tags: , ,

SCENARIO

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.

biztalk-parallels-actions

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

SOLUTION

To solve this error you have to options:

Solution 1:

If you want to use translations inside the branches you need to:

  • Open Scope Properties of each branch
  • Set “Synchronized” property to “True”

biztalk-parallels-actions-properties

Solution 2:

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

Comments
  1. shah faisal says:

    how to ope scope properties? I select the parallel shape and right click the properties, but its not showing the properties as shown above in the figure.

    • Hi Shah Faisal,

      Sorry for the response delay, the properties that are in the image are related to the Scope shape, which are in the parallel shape.

      So drag the scope shape into one branch of the parallel shape and right click the properties.

  2. Anonymous says:

    Hi Sandro, Let me clarify the 2 options :

    1. Transaction Type = Atomic ; Synchronized = True
    2. Transaction Type = None ; Synchronized = False

    Kindly sugest.

Leave a Reply

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