Cannot transform a message after debatch in a receive pipeline called from orchestration

Home Page Forums BizTalk 2004 – BizTalk 2010 Cannot transform a message after debatch in a receive pipeline called from orchestration

Viewing 1 reply thread
  • Author
    Posts
    • #21245

       Hi gurus,

          I’m not sure if anyone of you has come across this strange issue, executing a receive pipeline within an orchestration, but here is the scenario:

      1) Within a transactional scope, I call on the method Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline to debatch an envelope schema (using the XMLReceive pipeline) and output to an object of type Microsoft.XLANGs.Pipeline.ReceivePipelineOutputMessages. Let’s call this object xxxxx

      2) In a loop with the condition set as xxxxx.MoveNext(), I run this command xxxxx.GetCurrent(MyMessage), with MyMessage being the debatched target message (single record).

      3) At this point, I want to do further transformations on the message MyMessage, using a map and a target schema, but I find out that, after the orchestration runs, I do not see any values extracted from the source schema to the target instance (I am outputting to a file on disk), when I specify those fields to the be transformed in the map.

         The odd thing is that when I test the output of an instance of MyMessage into a file, I see that there are values for a record, but when I try to run the additional map transformation, those values do not come across into the target schema; it’s as if the MyMessage object is empty. I even tried calling a secondary orchestration to do the transformation there, to no avail.

          Has anyone encountered this issue before? Can you tell me how to fix it (or get around it)?

          Your advice is really appreciated!

           Daniel.

    • #21256

       Hi all,

         Just an update. I was able to resolve this issue. Basically the instance of MyMessage generated by the orchestration did not match the schema used in the map, so I modified the message format by modifying the results sent back from the call to a stored procedure (as I use a SQL adapter in my orchestration): in my message, I was using child elements instead of child attributes, as defined in the schema.

         Best to all,

         Daniel.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.