1 Reply Latest reply: Jul 1, 2010 3:53 AM by 782468 RSS

    OSB/ALSB Split-Join causes duplicate splittings

    779276
      I have a split-join to split an XML message into individual LoginDetail elements so that it can be processed in parallel.
      The format of the message is this:

      <LoginDetail>
      <login>a</login>
      </LoginDetail>
      <LoginDetail>
      <login>b</login>
      </LoginDetail>
      ....

      I've created a $logincounter variable with start value = 1 and end value = count($request.LoginRequest/LoginDetails) which is the number of LoginDetails element in the XML message.

      However, when I run the split-join in the OSB, the splitting is not done properly. I got the correct number of LoginDetail elements but there are some duplicates. Some LoginDetails are duplicated and each was sent for processing. I tried printing the $logincounter variable and it seems that the $logincounter was not incremented correctly.

      If I have 4 LoginDetail elements like this in the input:
      <LoginDetail>
      <login>adam</login>
      </LoginDetail>
      <LoginDetail>
      <login>bob</login>
      </LoginDetail>
      <LoginDetail>
      <login>cassie</login>
      </LoginDetail>
      <LoginDetail>
      <login>daniel</login>
      </LoginDetail>

      I might get 4 LoginDetail elements after splitting with duplicates, like this:
      <LoginDetail>
      *<login>adam</login>*
      </LoginDetail>
      <LoginDetail>
      <login>bob</login>
      </LoginDetail>
      <LoginDetail>
      *<login>adam</login>*
      </LoginDetail>
      <LoginDetail>
      <login>daniel</login>
      </LoginDetail>

      But, this problem doesnt occur everytime I run it. Appreciate if someone can throw some light on this matter.