Hello all,I'm having a problem with the EDI batching in BizTalk 2009 (and BizTalk 2006 R2 for that matter).My situation is the following:I have one specific FF message which I map into one or more (EDIFACT) DESADV messages and always one (EDIFACT) IFCSUM message.These messages need to be combined into one and the same EDI interchange, so I'm using the Batching orchestration built-in into BizTalk 2009.As a result I need to get one EDIFACT interchange with the IFCSUM always as the last within the interchange.My solution so far:I have one orchestration which splits (and maps) the incoming FF into one or more DESADV messages and into one IFCSUM message.These are put on the message box and picked up by a send port to the FILE system (EDISend pipeline).From there, they are picked up again by a FILE receive location (EDIReceive) ** Reason for this is that apparently it is impossible to call the EDI send/receive pipelines from within an orchestration?I need to do this, because the batching orchestration only batches with complete EDI messages (meaning that they need to have UNH for example filled in).From there, I use another orchestration that activates on the receive of a DESADV and will then listen for more DESADV messages until a timer of 15 seconds is ended as of which it then listens for the IFCSUM.After each receive of a message that validates these rules, I send it to the Batching orchestration (which is setup in my Party setup).Then an external release trigger message is sent to complete the interchange and send it out to a send port.My questions:1) Is there any way to call the EDI Send/Receive pipeline from within my orchestration?I have searched A LOT and found nothing useful.2) Now, when 2 FF messages are received within a short time frame (few seconds), these are mixed up between the interchanges and completely invalidates my output.Is there any way to solve this? (also see http://social.msdn.microsoft.com/forums/en-US/biztalkediandas2/thread/ea6bb531-d095-47d5-a51b-b4c892553eec/ for the same issue)3) Any pointers as to where I can improve the solution? I don't feel comfortable with the 15 second timer for example...All help is really appreciated!Kind regards,Pieter
You can not call Edi receive ,send pipelines from Orchestration. It is documented here in known issues:
If this answers your question, please mark it as "Answered".
Sorry for the late reply (I don't put e-mail alerts on by default).
The solution is described into detail here: http://www.codit.eu/Blog/post/2009/11/10/Outbound-EDI-batching-in-BizTalk-Server-2009.aspx
- CODit Integration Engineer